how to check m0d - 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: how to check m0d (
/showthread.php?tid=400612)
how to check m0d -
peterory - 19.12.2012
if the player use health hack
..... the OnPlayerTakeDamage is unuse to the player...
can someone give me some idea?
Re: how to check m0d -
Roel - 19.12.2012
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.
Re: how to check m0d -
SuperViper - 19.12.2012
Quote:
Originally Posted by Roel
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.
|
If you do decide to do this, you'll need a lot of checks such as if the player is spawned, etc.
Re: how to check m0d -
Roel - 19.12.2012
Quote:
Originally Posted by SuperViper
If you do decide to do this, you'll need a lot of checks such as if the player is spawned, etc.
|
Well normaly you already have variables that says if a player is spawned or not, and thats only one variable, and yes maybe you need some more, but thats why I said you should be sure that it won't bug, but if you know another way to detect healthhackers, go ahead