SA-MP Forums Archive
Car crash, hp - 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: Car crash, hp (/showthread.php?tid=536141)



Car crash, hp - Rabea - 07.09.2014

Hi, im trying to do when someone crash with car his hp go down, anyone can tell me what i have to do?


Re : Car crash, hp - FilesMAker - 07.09.2014

You can use this entry:
OnVehicleDamageStatusUpdate(vehicleid, playerid)

So when a car get damaged or crashed, use SetPlayerHealth(playerid, 0.0); If you want to player to die.