18.12.2009, 03:35
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;
}