Auto-team balance..
#2

You can like

pawn Code:
#define MAX_TEAM_MEMBERS 20                     //Change to yours...

//OnFilterScriptInIt
SetTimerEx("AutoBalance",600000,true,"d",playerid); //600000 = 10minutes.

forward AutoBalance(playerid);
public AutoBalance(playerid)
{
      //Use 'if' statement to see how many people on team, something like this
      if(gTeam[playerid] > MAX_TEAM_MEMBERS)
      {
              SetPlayerTeam(playerid,2); // Something like this should work.
      }
      return 1;
}
Reply


Messages In This Thread
Auto-team balance.. - by The_Moddler - 07.10.2010, 19:41
Re: Auto-team balance.. - by willsuckformoney - 07.10.2010, 19:57
Re: Auto-team balance.. - by kyoto - 12.11.2010, 14:46
Re: Auto-team balance.. - by Hiddos - 12.11.2010, 14:56
Re: Auto-team balance.. - by Jeroen52 - 26.03.2011, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)