Is it existing?
#5

Well, let's suppose you want to get the number of players online in your server:
PHP код:
stock GetOnlinePlayersNumber()
{
     new 
res=0;
     for(new 
j=0;j<MAX_PLAYERS;j++) if(IsPlayerConnected(j))res++; else continue;
     return 
res;
}
//Somewhere in your code...
new str[256];
format(str,sizeof str,"We have %d/50 players online",GetOnlinePlayersNumber());
SendClientMessage(playerid,-1,str); 
Reply


Messages In This Thread
Is it existing? - by Davidmkd123 - 12.02.2018, 18:39
Re: Is it existing? - by Abagail - 12.02.2018, 18:46
Re: Is it existing? - by Mugala - 12.02.2018, 19:54
Re: Is it existing? - by PepsiCola23 - 12.02.2018, 20:28
Re: Is it existing? - by ChristolisTV - 12.02.2018, 20:49
Re: Is it existing? - by Kane - 12.02.2018, 20:50
Re: Is it existing? - by Mugala - 12.02.2018, 21:25
Re: Is it existing? - by Dayrion - 12.02.2018, 21:32
Re: Is it existing? - by Mugala - 12.02.2018, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)