I had the same problem with my own cat and car! They love the warmth of the hood.
Cats really hate aluminum foil, or anything sticky. There are also some repellant sprays that smell like citrus, but don't know if you can use that on a car.
You could also use a squirt bottle and spray the cat when he jumps up, if it's not cold where you are.