Little team Balancer help!
#2

I'd do something like this
Код:
new usa, china, iran, russia, lowest, highest, highnum, lownum;
for(new p = 0; p < GetMaxPlayers(); p++)
{
  if (gTeam[p] == TEAM_USA)
  {
    usa++;
    if(usa > highnum)
    {
      highnum = usa;
      highest = 1;
    }
    if(usa < lownum)
    {
      lownum = usa;
      lowest = 1;
    }
  }
if ((highest == 1) && gTeam[playerid] == TEAM_USA)
  return SendClientMessage(playerid, COLOR_RED, " This team is full!");
Reply


Messages In This Thread
Little team Balancer help! - by Saurik - 12.05.2010, 00:53
Re: Little team Balancer help! - by cessil - 12.05.2010, 01:53
Re: Little team Balancer help! - by mini_mi - 30.08.2012, 15:51
Re: Little team Balancer help! - by Dan. - 30.08.2012, 16:05

Forum Jump:


Users browsing this thread: 4 Guest(s)