SA-MP Forums Archive
Anti cheat(detecting health?) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti cheat(detecting health?) (/showthread.php?tid=166148)



Anti cheat(detecting health?) - 0ne - 07.08.2010

Is this possible to detect sobiets invulnrebility hack that stays 100hp frozen ? Or is there any script that detects some of that hacks features?


Re: Anti cheat(detecting health?) - Kayla.S - 07.08.2010

I would think all anti cheats detect infinite health. It's one of the common hacks.

This one works well. https://sampforum.blast.hk/showthread.php?tid=71877


Re: Anti cheat(detecting health?) - Hiddos - 07.08.2010

@Kayla: They don't.

I used to have a pretty accurate script that detects health hacks though, it slapped them in the air and exploded them, and put the player back in the original position after 1-2 seconds. The script would then tell if the player lost any HP because of the explosion, or was AFK (Slap him in the air)


Re: Anti cheat(detecting health?) - Claude - 07.08.2010

pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
if(health > 100)
Ban(playerid);
I am sure this fails, but ye I gave it a try


Re: Anti cheat(detecting health?) - Kar - 07.08.2010

Quote:
Originally Posted by Claude
Посмотреть сообщение
pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
if(health > 100)
Ban(playerid);
I am sure this fails, but ye I gave it a try
wtf lmao are u stupid?


Re: Anti cheat(detecting health?) - willsuckformoney - 07.08.2010

Quote:
Originally Posted by Claude
Посмотреть сообщение
pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
if(health > 100)
Ban(playerid);
I am sure this fails, but ye I gave it a try
that will fail because if admin goes /god then there health will go to 100,000 && ban that admin -_- && admin /sethealth its bans them if the health is set to more than 100


Re: Anti cheat(detecting health?) - Hiddos - 07.08.2010

if(IsPlayerAdmin) function.


Re: Anti cheat(detecting health?) - Calgon - 07.08.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
that will fail because if admin goes /god then there health will go to 100,000 && ban that admin -_- && admin /sethealth its bans them if the health is set to more than 100
Depends on the script, of course.

Quote:
Originally Posted by Kar
Посмотреть сообщение
wtf lmao are u stupid?
Don't post if you're going to contradict yourself.


Re: Anti cheat(detecting health?) - ViruZZzZ_ChiLLL - 07.08.2010

Well as what Hiddos said try to do the following and if someone reported a possible health hacking :

1.) Make a command like /healthhacks that would first slap them and explode
2.) After the succession of the command, make a timer about 7000 or 7 seconds.
3.) If the player didn't lose health, kick them automatically.

Well that's just me.


Re: Anti cheat(detecting health?) - Calgon - 07.08.2010

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Посмотреть сообщение
Well as what Hiddos said try to do the following and if someone reported a possible health hacking :

1.) Make a command like /healthhacks that would first slap them and explode
2.) After the succession of the command, make a timer about 7000 or 7 seconds.
3.) If the player didn't lose health, kick them automatically.

Well that's just me.
Kicking a health hacker is like spitting in a terrorists face instead of attempting to hand him into the authorities or attempting to prevent him from attacking...