How to make team balance?
#6

Quote:
Originally Posted by whooper
how would u do it with three teams
Maybe that way?

Код:
new count1, count2, count3;
for(new p = 0; p < GetMaxPlayers(); p++)
{
  if (Class[p] == TEAM_COPS)
  {
    count1++;
  }
  else if (Class[p] == TEAM_BALLAS)
  {
    count2++;
  }
  else if (Class[p] == TEAM_THIRD)
  {
    count3++;
  }
}
if (((count1 > count2) || (count1 > count3)) && Class[playerid] == TEAM_COPS)
  return SendClientMessage(playerid, color_here, " This team is full!");
else if (((count2 > count1) || (count2 > count3)) && Class[playerid] == TEAM_BALLAS)
  return SendClientMessage(playerid, color_here, " This team is full!");
else if (((count3 > count1) || (count3 > count2)) && Class[playerid] == TEAM_THIRD)
  return SendClientMessage(playerid, color_here, " This team is full!");
Reply


Messages In This Thread
How to make team balance? - by kevin433 - 29.06.2008, 16:07
Re: How to make team balance? - by whooper - 20.08.2008, 14:10
Re: How to make team balance? - by Nero_3D - 20.08.2008, 14:14
Re: How to make team balance? - by Nero_3D - 20.08.2008, 15:07
Re: How to make team balance? - by whooper - 20.08.2008, 15:13
Re: How to make team balance? - by adminuser - 20.08.2008, 15:24
Re: How to make team balance? - by whooper - 20.08.2008, 15:26
Re: How to make team balance? - by Nero_3D - 20.08.2008, 15:27
Re: How to make team balance? - by adminuser - 20.08.2008, 15:29
Re: How to make team balance? - by whooper - 20.08.2008, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)