11.08.2011, 15:57
Remove returns
pawn Код:
public BadCheck()
{
new weap, string[128], pname[MAX_PLAYER_NAME];
for(new i, b = GetMaxPlayers(); i < b; i++)
{
GetPlayerName(i, pname, sizeof(pname));
weap = GetPlayerWeapon(i);
for(new w; w < sizeof(BadWeapons); w++)
{
if(weap == BadWeapons[w])
{
format(string,sizeof(string),"[ Kick ]%s Kicked For %s.", pname, weap);
SendClientMessageToAll(COLOR_RED,string);
Kick(i);
}
}
}
}