Full team
#2

Team Balance?
pawn Code:
#define BALANCER 20 // Amount of players in team

public OnGameModeInit() {
     for(new i=0; i<MAX_PLAYERS; i++) {
          SetTimerEx("Trololo",AmountOfMinToCheckTeamBalance,true,"d", i);
     }
     return 1;
}

forward Trololo(playerid);
public Trololo(playerid)
{
      if(TeamInfo[playerid] > BALANCER)  {
           SetPlayerTeam(playerid,MYTEAM);
      }
      if(TeamInfo[playerid] < BALANCER) {
           SetPlayerTeam(playerid,MYTEAM2);
      }
      return 1;
}
Reply


Messages In This Thread
Full team - by RatHack - 01.08.2011, 13:55
Re: Full team - by Kitten - 01.08.2011, 14:01
Respuesta: Full team - by RatHack - 01.08.2011, 14:08
Re: Full team - by =WoR=Varth - 02.08.2011, 00:51
Re: Full team - by Basicz - 02.08.2011, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)