Anticheat
#3

Rcon admin?

Код:
public AntiWeaponHack(playerid)
{
new deathreason[256];
new string[128], tmpname[MAX_PLAYER_NAME];
for (new i = 0; i < MAX_PLAYERS; i++)
{
  switch(GetPlayerWeapon(i))
  {
    case 17, 36, 37, 38, 39, 40, 42, 41, 43, 44, 45, 47:
    {
      GetWeaponName(GetPlayerWeapon(i),deathreason,255); // <<-- i is the playerid
      GetPlayerName(i, tmpname, sizeof(tmpname));
      format(string, sizeof(string), "[ANTI-CHEAT] %s has been auto-banned for Weapon Hacking [ %s ]", tmpname, deathreason);
      SendClientMessageToAll(COLOR_RED, string);
      print(string);
      if(!IsPlayerAdmin(i))//If the player isnt rcon admin because of the ! at start
      {
        Ban(playerid);
      }
      else//If the player is rcon admin
      {
      }
    }
  }
}

return 1;
}
EDIT: Damn that dude was before me >_<
Reply


Messages In This Thread
Anticheat - by ihatetn931 - 07.02.2010, 18:32
Re: Anticheat - by Calgon - 07.02.2010, 18:37
Re: Anticheat - by bajskorv123 - 07.02.2010, 18:39
Re: Anticheat - by ihatetn931 - 07.02.2010, 18:44
Re: Anticheat - by Calgon - 07.02.2010, 19:51
Re: Anticheat - by ihatetn931 - 07.02.2010, 20:05
Re: Anticheat - by Calgon - 08.02.2010, 01:17
Re: Anticheat - by ihatetn931 - 08.02.2010, 02:04

Forum Jump:


Users browsing this thread: 3 Guest(s)