[HELP] Car Explosion
#3

Quote:
Originally Posted by Finn
You're using OnVehicleSpawn callback, which means that it's called when the vehicle is spawned and when the vehicle is spawned it surely doesn't have 30.0 health.

You need to use a timer that checks the vehicle's health every second or so, and if the health is under 30.0, make the explosion. Use SA-MP wiki to get help with timers.
Kk tnx i already thought that the problem was cuz i wrote the script OnVehicleSpawn jsut wasnt sure...
Reply


Messages In This Thread
[HELP] Car Explosion - by Frankox - 07.07.2009, 22:23
Re: [HELP] Car Explosion - by Finn - 07.07.2009, 22:42
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 22:51
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 23:02
Re: [HELP] Car Explosion - by happyface - 07.07.2009, 23:25
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 23:31
Re: [HELP] Car Explosion - by happyface - 07.07.2009, 23:36
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 23:50
Re: [HELP] Car Explosion - by Frankox - 08.07.2009, 07:04
Re: [HELP] Car Explosion - by happyface - 08.07.2009, 07:46

Forum Jump:


Users browsing this thread: 4 Guest(s)