27.06.2009, 15:54
Your origonal one wouldn't work because you return 1; before it can check all players.
well if that's a timer, you could just do:
well if that's a timer, you could just do:
pawn Код:
forward WeapCheck();
pawn Код:
public OnGameModeInit()
{
SetTimer("WeapCheck",15000,1);
return 1;
}
pawn Код:
public WeapCheck()
{
for(new i; i<200;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);
Kick(i);
}
return 1;
}