19.12.2012, 13:58
There is almost no way to detect all health hacks, since health hacks are not always detectedable,
normaly a healthhack sets a permanent valeu to the client health, and whatever happends the health won't get less, so sa-mp you won't be able to detect it, what you can do is add something like if(health > 99.5) and instead of setting the players health to 100 when they spawn you put it to 99.5, and whenever a player uses a health hack which sets his health to 100 or higher, he will get detected.
But also for this you will need to be sure it won't bug.
normaly a healthhack sets a permanent valeu to the client health, and whatever happends the health won't get less, so sa-mp you won't be able to detect it, what you can do is add something like if(health > 99.5) and instead of setting the players health to 100 when they spawn you put it to 99.5, and whenever a player uses a health hack which sets his health to 100 or higher, he will get detected.
But also for this you will need to be sure it won't bug.