Anti HP / Armour Cheats..
#1

Well i made this:

Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
	new Float:AC; GetPlayerArmour(Target,AC);
	new Float:HP; GetPlayerHealth(Target,HP);
	new PNAME[126]; GetPlayerName(Target,PNAME,sizeof(PNAME));
	
	if(AC){
	    if(!ArmourLost){
	        new KICKED[256]; 
	        format(KICKED,sizeof(KICKED),"%s has been kicked from server.(Reason: Cheats )",PNAME);
	        SendClientMessageToAll(COLOR_RED,KICKED);
			Kick(Target);
		}
	} else if(HP){
	
		if(!HealthLost){
  			new KICKED[256];
     		format(KICKED,sizeof(KICKED),"%s has been kicked from server.(Reason: Cheats )",PNAME);
      		SendClientMessageToAll(COLOR_RED,KICKED);
			Kick(Target);
		}
	
	}
    return 1;
}
Its like an anti-cheat for health / armour..(Didn tested)
If i shoot a lagger and doesnt make any effect in his HP or Armour will the player get kicked?
Cause i dont know that callback very mutch , that i downloaded in the other section...
Reply


Messages In This Thread
Anti HP / Armour Cheats.. - by Machida - 21.08.2011, 00:19
Re: Anti HP / Armour Cheats.. - by [HiC]TheKiller - 21.08.2011, 01:04
Re: Anti HP / Armour Cheats.. - by Machida - 21.08.2011, 01:09
Re: Anti HP / Armour Cheats.. - by cessil - 21.08.2011, 01:59

Forum Jump:


Users browsing this thread: 2 Guest(s)