Getting the amount of players online.
#7

I think it works:

PHP код:
forward Check();

public 
Check()
{
    new 
players;
    for(new 
0MAX_PLAYERS++)
    {
        if(
IsPlayerConnected(i)) players++;
    }
    return 
players;
}

format(stringsizeof(string), "~r~%d~w~/~b~%d ~y~Players Online"CheckGetMaxPlayers()); 
Reply


Messages In This Thread
Getting the amount of players online. - by Luis- - 06.07.2011, 22:32
Re: Getting the amount of players online. - by Luis- - 06.07.2011, 22:54
Re: Getting the amount of players online. - by Skylar Paul - 06.07.2011, 22:56
Re: Getting the amount of players online. - by BlackWolf120 - 06.07.2011, 23:00
Re: Getting the amount of players online. - by [L3th4l] - 06.07.2011, 23:04
Re: Getting the amount of players online. - by Luis- - 06.07.2011, 23:08
Re: Getting the amount of players online. - by Shadoww5 - 06.07.2011, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)