11.11.2010, 15:15
Quote:
Why would you use a timer, when you can use a native function called 'OnPlayerUpdate'
Also the only thing yours does it setting the health back to 300 and like 'Mike Garber' said. When a vehicle is on fire there is no going back. And you set it back to 300 exactly at the moment it catches fire. It WON'T work the vehicle will just explode.. |
OnPlayerUpdate is called 32 times in a second, there is no need too much presicion, also, a vehicle explodes in around 8 seconds, so you can actually set the timer to 2000 ms.
My code works fine.