Simple Anticheat Check not working
#3

Could this work? Do I even need the ammo part because I really don't care how much ammo they have in their guns.

pawn Code:
forward AntiCheat();
public AntiCheat()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
      if(ADMIN[i] == false && GetPlayerWeapon(i) == 42)
      {
            new string [128];
            new pName[MAX_PLAYER_NAME];
            GetPlayerName(i, pName, sizeof(pName));
            format(string, sizeof(string), "BANNED: %s has been auto banned by console.", pName);
            SendClientMessageToAll(0xFF0000FF, string);
            BanEx(i, "AntiCheat");
        }
        else if(ADMIN2[i] == false && GetPlayerWeapon(i) == 1)
      {
            new string [128];
            new pName[MAX_PLAYER_NAME];
            GetPlayerName(i, pName, sizeof(pName));
            format(string, sizeof(string), "BANNED: %s has been auto banned by console.", pName);
            SendClientMessageToAll(0xFF0000FF, string);
            BanEx(i, "AntiCheat");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Simple Anticheat Check not working - by BP13 - 18.12.2009, 03:01
Re: Simple Anticheat Check not working - by FreshKilla - 18.12.2009, 03:29
Re: Simple Anticheat Check not working - by BP13 - 18.12.2009, 03:35
Re: Simple Anticheat Check not working - by FreshKilla - 18.12.2009, 03:39
Re: Simple Anticheat Check not working - by BP13 - 18.12.2009, 04:01
Re: Simple Anticheat Check not working - by DarkPower - 28.02.2010, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)