It's all in the prep work, and the fnal stages.
Make sure you clean well, sand, and primer first. This is important to keeping the paint on. when your done spraying your color, make sure you hit it with lots of clear coat. Not only will it be nice and shiney, it will help (help being the key word) stop rocks and such from chipping the paint off.