View Full Version : [Help] Health hack check.

02/10/2011, 05:30 PM
Hey ,

I've been trying to script a health hack check using ZCMD , if you perform the CMD on a player it sets his pos somewhere else , it checks his current HP and gets his old pos and sets his hp to 100 , i'd like to use SetTimer here that after its done with sending him to the new pos it explodes him and gets his hp after being exploded then sends him back to his oldpos and sets his hp back the way it was before the the playerid performed the CMD on him and send the playerid that performed the CMD a message , if the hp it checks after the target id has been exploded is = 100 saying it's positive and if its lower than 100 saying negative result .

Thanks in advance , i'm trying to do it and getting few error , i'd be thankful if someone could script me it .

02/10/2011, 06:26 PM
For script requesting post here: http://forum.sa-mp.com/showthread.php?t=187229&page=34

Post your code here so we can take a look into it and fix it. :)

02/10/2011, 06:37 PM
My friend scripted an anti health hack with the OnPlayerTakeDamage and its working, you can script it too.

02/10/2011, 06:40 PM
You can also see how is it done in other anticheats (for example, JunkBuster).