Team balancer?
#1

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 )
Reply
#2

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;
}
Reply
#3

Thanks for the reply, But i've tryed this. Can you give me another example?
Reply
#4

hummm I can't think of a other way to do it, I will post if something comes to my head
Reply
#5

Alright thanks. Really need this, Searched forever still cant find a working Example
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)