SA-MP Forums Archive
Crash Damage - 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: Crash Damage (/showthread.php?tid=607924)



Crash Damage - GoldenLion - 25.05.2016

How can I make a script like that if player crashes with a vehicle into a wall or something then he will lose health depending on the speed?


Re: Crash Damage - zDivine - 25.05.2016

You can use GetVehicleVelocity to get the speed of the vehicle. There is a tutorial here explaining how to do it.