Round out players
#5

ok but what i wanted it do is have the server round it to the number of players in server,...

maby this?

pawn Код:
stock CountPlayers()
{
  new count = 0;
  for (new i = 0; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      count++;
    }
  }
  return count;
}

new CurPlayers = CountPlayers()
new devide;
devide = (CurPlayers / 4);
/* and do the rest */ maby?
Reply


Messages In This Thread
Round out players - by StrickenKid - 13.04.2009, 22:26
Re: Round out players - by StrickenKid - 14.04.2009, 00:56
Re: Round out players - by ICECOLDKILLAK8 - 14.04.2009, 01:08
Re: Round out players - by Backwardsman97 - 14.04.2009, 01:12
Re: Round out players - by StrickenKid - 14.04.2009, 01:25
Re: Round out players - by Backwardsman97 - 14.04.2009, 02:18

Forum Jump:


Users browsing this thread: 3 Guest(s)