06.10.2013, 15:42
pawn Код:
public OnGameModeInit()
{
SetTimer("OnlineCheck",60000 * 15,1);
return 1;
}
forward OnlineCheck();
public OnlineCheck()
{
new count,string[124];
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { count ++; } }
format(string,sizeof(string),"Online players: %d",count);
SendClientMessageToAll(-1,string);
return 1;
}

