13.03.2011, 03:57
pawn Код:
OnGameModeInit
SetTimer("ARMASPROIBIDAS", 1000, true);
forward ARMASPROIBIDAS();
public ARMASPROIBIDAS()
{
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(GetPlayerWeapon(i) == 35)
{
new sendername[MAX_PLAYER_NAME];
new string[60];
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "Anti-Armas: %s foi banido por usar arma proнbida.", sendername));
SendClientMessageToAll(0xFF7777AA, string);
Ban(i);
}
}
}