Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Well, Searched for two days, Cant find a working team balancer.
I Got two teams using gTeam.
Can anyone give me an example on how i can do this?
p.s( Just making a Mini mode But i need Balanced teams of 10 a peice )
Posts: 591
Threads: 121
Joined: Oct 2010
Reputation:
0
make a variable for each team like :
new Team1;
new Team2;
and do like this OnPlayerSpawn
if(gTeam[playerid][Team]
{
Team1 ++;
}
then you work on how you do to players select team like : (Normaly on OnPlayerRequestSpawn)
if(Team1 > Team2)
{
SendClientMessage(playerid, RED, "This team is full, please pick a different one");
Return 0;
}
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Thanks for the reply, But i've tryed this. Can you give me another example?
Posts: 591
Threads: 121
Joined: Oct 2010
Reputation:
0
hummm I can't think of a other way to do it, I will post if something comes to my head