[HELP]OnPlayerTakeDamage[HELP]!!! - 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: [HELP]OnPlayerTakeDamage[HELP]!!! (
/showthread.php?tid=370119)
[HELP]OnPlayerTakeDamage[HELP]!!! -
Cjgogo - 19.08.2012
OK,so I have an Anti-HealthHack system,made with a timer,but I was wondering would it be efficient and SAFE if I check the damage ammount(using the OnPlayerTakeDamage function),and that way if the ammount is 0(even if he was run over by a car,shot,or punched,he lost no healt) ban him?
Re: [HELP]OnPlayerTakeDamage[HELP]!!! -
Universal - 19.08.2012
You should not check if he received 0 damage, check if his health changed instead.