[UNSOLVED] Team Balance With 3 Teams
#3

Quote:
Originally Posted by DeathOnaStick
This maybe works for Team one and two (in one way) so far. You need to add the other stuff by yourself anyway, but you can use the same concept.

Have Fun.

pawn Код:
public Ballance()
{
new TeamPlayers[*Amount of Teams*];
for(new i=0; i<MAX_PLAYERS; i++)if(IsPlayerConnected(i))TeamPlayers[GetPlayerTeam(i)]++;

if(TeamPlayers[TEAM_TWO]<TeamPlayers[TEAM_ONE]) //Start: Ballance Team One
{
new RandPla=random(TeamPlayers[TEAM_ONE]);
if(GetPlayerTeam(RandPla)!=TEAM_ONE)
{
for(RandPla; RandPla<=MAX_PLAYERS && GetPlayerTeam(RandPla)!=TEAM_ONE, RandPla++) ForcePlayerClassSelection(RandPla);
}
if(RandPla==MAX_PLAYERS)Ballance();
else ForcePlayerClassSelection(RandPla);
} //End: Ballance Team One

return 1;
}
The thing is, I also have a balance script for 2 teams but I don't know how to change it to 3...
TnQ Anyway (:
Reply


Messages In This Thread
[UNSOLVED] Team Balance With 3 Teams - by Nameless303 - 17.12.2009, 14:49
Re: [UNSOLVED] Team Balance With 3 Teams - by DeathOnaStick - 17.12.2009, 15:25
Re: [UNSOLVED] Team Balance With 3 Teams - by Nameless303 - 17.12.2009, 23:54
Re: [UNSOLVED] Team Balance With 3 Teams - by Backwardsman97 - 18.12.2009, 00:03
Re: [UNSOLVED] Team Balance With 3 Teams - by Nameless303 - 18.12.2009, 11:25
Re: [UNSOLVED] Team Balance With 3 Teams - by xDENNNIISSSS - 21.12.2009, 18:22
Re: [UNSOLVED] Team Balance With 3 Teams - by Nameless303 - 22.12.2009, 08:18
Re: [UNSOLVED] Team Balance With 3 Teams - by LarzI - 22.12.2009, 08:29
Re: [UNSOLVED] Team Balance With 3 Teams - by Nameless303 - 22.12.2009, 08:35
Re: [UNSOLVED] Team Balance With 3 Teams - by wafffllesss - 22.12.2009, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)