12.02.2018, 18:39
Any function maybe like GetPlayerIngamePlayers() ??, or i should make it by myself?
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);