SA-MP Forums Archive
No Fire When Vehicle Helath Is 0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: No Fire When Vehicle Helath Is 0 (/showthread.php?tid=341066)



No Fire When Vehicle Helath Is 0 - stuoyto - 09.05.2012

Hello samp forum,

I played on a server earlier that had a featue where cars would not catch fire when their health was 0, instead is displayed game text for the player saying "totalled" and the car would not move. This allowed mechanics to fix the car so that it can be used again.

I am wondering if anyone can help me create the code that stops the car from exploding. If anyone could help i would really appreciate it.


Stuoyto


Re: No Fire When Vehicle Helath Is 0 - john_jenkins - 09.05.2012

ok its not big prabolems just download mnew car system


https://sampforum.blast.hk/showthread.php?tid=222233


Re: No Fire When Vehicle Helath Is 0 - MP2 - 09.05.2012

Set a timer of around 3 seconds to loop through all vehicles. If their health is less than 250 (on fire) set a variable to 1 to denote that it is 'totalled' and stop the engine. Then set the health back to 250.


Re: No Fire When Vehicle Helath Is 0 - TzAkS. - 09.05.2012

I don`t think that will work,becouse the car takes fire from 250 and if takes fire you can`t stop it from explode,better is to check cars for 300.