Death System - 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: Death System (
/showthread.php?tid=610398)
Death System -
Barnwell - 23.06.2016
Hello Guys
i just need to add a new thing to the server that when you jump no -health or armour
and when someone box you no -health or armour
Can anyone help me with that?
Re: Death System -
Barnwell - 23.06.2016
can anyone help me its hard to make it
Re: Death System -
Stones - 23.06.2016
I don't understand what your asking, please elaborate.
Re: Death System -
[KHK]Khalid - 23.06.2016
OnPlayerTakeDamage and
OnPlayerGiveDamage have
weaponid parameter, you can check that against whatever you want,
WEAPON_COLLISION id 54 is what makes a player loses HP if they jump, then calculate the lost damage with the help of
GetPlayerHealth and undo it by
SetPlayerHealth.