check player online
#4

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;
}
Reply


Messages In This Thread
check player online - by kbalor - 06.10.2013, 15:34
Re: check player online - by Juniiro3 - 06.10.2013, 15:39
Re: check player online - by xXShadowXx - 06.10.2013, 15:42
Re: check player online - by EiresJason - 06.10.2013, 15:43
Re: check player online - by kbalor - 06.10.2013, 16:44
Re: check player online - by xXShadowXx - 06.10.2013, 16:46
Re: check player online - by ReVo_ - 06.10.2013, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)