21.08.2011, 00:19
Well i made this:
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...
Код:
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; }
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...