13.08.2013, 21:04
Quote:
Hi to one and all.
This is so when a vehicle turns, it explodes directly. It seems to me that it is possible to delay the time of explosion of the vehicle (fire would be, but it would explode after 30/40 seconds (to be determined)). And also, when the vehicle turns out, for example 1 in 5 chance that the vehicle will not catch fire. Is this possible? Bye |
N.B Cars Max health is 1000
Car sets on fire at 200HP so in the script you need to have something like this:
Код:
if car health = 200 then set car health 201 then set timer (40 sec) then after the time is up set car health 0 <This explodes the vehicle>
During the timer you can obtain a fire object which is provided in the sa-mp objects I think. You just need to set the x,y,z to the cars hood.
And for your 1 in 5 chances of the car not catching fire after flipping would require you to enter a script where you check of the car is flipped and if so you maintain the health, and do a few maths in there if you want the 1/5 chances of surviving.