06.06.2011, 07:27
Looks nice, however some methods wont work on every hack.
Your checking the player's health as instance if its above 999999, but what if i use cheatengine and set it to 999998 ?
Can't you try something like this (im now sure if this is a good method however):
?
I think its much more effective.
Your checking the player's health as instance if its above 999999, but what if i use cheatengine and set it to 999998 ?
Can't you try something like this (im now sure if this is a good method however):
pawn Код:
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i)) continue;
new Float:health,Float:check;
GetPlayerHealth(i,health);
SetPlayerHealth(i,(health -1)); //check if you can remove 1 HP
GetPlayerHealth(i,check); //verify the check
if(check != (health -1) || health > 100) //if the check isnt correct or that the health is above 100
{
SendClientMessage(i,COLOR_RED,"You have been kicked by the server (Reason: Health hacks).");
Kick(i);
} else {
SetPlayerHealth(i,health); //restore the health
}
}
I think its much more effective.

