Get # of players online?
#5

Top of your script, below the defines:
pawn Код:
new players;
OnPlayerConnect:
pawn Код:
players++;
OnPlayerDisconnect:
pawn Код:
players--;
Somewhere in your script:
pawn Код:
stock GetAllPlayersOnline()
{
  return players;
}
Usage:
pawn Код:
GetAllPlayersOnline()
@ Post above: Why would you use loops for such an easy and small thing.
Reply


Messages In This Thread
Get # of players online? - by sciman001 - 18.03.2011, 20:05
Respuesta: Get # of players online? - by Alex_Obando - 18.03.2011, 20:06
Re: Get # of players online? - by sciman001 - 18.03.2011, 20:07
Re: Get # of players online? - by Calgon - 18.03.2011, 20:08
Re: Get # of players online? - by Biesmen - 18.03.2011, 20:09
Re: Get # of players online? - by Jochemd - 18.03.2011, 20:09
Re: Get # of players online? - by sciman001 - 18.03.2011, 20:15
Re: Get # of players online? - by Biesmen - 18.03.2011, 20:17
Re: Get # of players online? - by Calgon - 18.03.2011, 20:21
Re: Get # of players online? - by sciman001 - 19.03.2011, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)