[HELP] How to get players' count?
#2

Quote:
Originally Posted by whitetigerswt
Посмотреть сообщение
Код:
GetPlayersOnServer() {
	new count;
	for(new x=0; x< MAX_PLAYERS; x++) { //x = MAX_PLAYERS
	  if(IsPlayerConnected(x))) { 
			count++;
		}
	}
	return count;
}
Then call that function whenever you need to know how many players are on the server.
here.....
Reply


Messages In This Thread
[HELP] How to get players' count? - by RoCK'N'Rolla - 10.09.2010, 09:41
Re: [HELP] How to get players' count? - by Thebest96 - 10.09.2010, 09:42

Forum Jump:


Users browsing this thread: 3 Guest(s)