05.05.2009, 02:56
pawn Код:
public Antiweapon(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (GetPlayerWeapon(i) == 38 || GetPlayerWeapon(i) == 35 || GetPlayerWeapon(i) == 36)
{
format(string, sizeof(string), "%s has been kicked for cheating", playername);
SendClientMessageToAll(ADMIN_RED, string);
banning[i] = 1;
if(banning[i] == 1)
{
Kick(i);
}
return 1;
}
}
}
Anyone know what's wrong?