03.05.2013, 06:32
Код:
OnPlayerUpdate() { PlayerLogged[playerid] == 0; } OnGameModeInit() { SetTimer("CheckFunc",10,0); } public CheckFun() { for(new i = MAX_PLAYERS;i > 0;i--) { if(IsPlayerConnected(i)) { PlayerLogged[i]++; if(PlayerLogged[i] > 2) { SendClientMessage(playerid,COLOR_RED,"TIMED"); Kick(playerid); //The client mesg qwont work becaz its just before kick :P } } }