how to check m0d
#1

if the player use health hack
..... the OnPlayerTakeDamage is unuse to the player...
can someone give me some idea?
Reply
#2

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.
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)