06.10.2013, 15:43
Try this.
pawn Код:
public OnGameModeInit()
{
SetTimer("OnlinePlayers",900000, true);
return 1;
}
forward OnlinePlayers();
public OnlinePlayers()
{
new string[50],totalplayers;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)) totalplayers++;
}
format(string,sizeof(string),"Online Player: %i.",totalplayers);
SendClientMessageToAll(-1,string);
return 1;
}