Team Balancer Question
#1

I have searched many team balancer scripts and this is what seemed to turn up:
pawn Code:
new team1;
new team2;

public OnPlayerRequestSpawn(playerid)
{
if(team1 > team2)
{
return 0;
}
else if(team2 > team1)
{
return 0;
}
return 1;
}

public OnPlayerSpawn(playerid)
{
if(Team[playerid] == TEAM_GROVE)
{
team1++;
}
else if(Team[playerid] == TEAM_BALLA)
{
team2++;
}
return 1;
}
But this wouldn't be accurate right? Everytime a player spawns, it would add one to his team variable. So if players on one team died more than others, they would have more added to their variable?
Reply


Messages In This Thread
Team Balancer Question - by Tigerbeast11 - 10.09.2011, 14:03
Re: Team Balancer Question - by Darnell - 10.09.2011, 14:10
Re: Team Balancer Question - by Basicz - 10.09.2011, 14:11
Re: Team Balancer Question - by Tigerbeast11 - 10.09.2011, 14:28
Re: Team Balancer Question - by Tigerbeast11 - 10.09.2011, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)