23.09.2010, 05:27
How can I make a team balancer ?
Note: I have 2 teams in my script.
Note: I have 2 teams in my script.
new pCount[ 2 ];
//when player joins team
if( pCount[ 0 ] - pCount[ 1 ] > 2 || pCount[ 1 ] - pCount[ 0 ] > 2 )
{
SendClientMessage( playerid, 0xFF0000FF, "To balance the teams, you are forced to join the other team." );
//join the other team
}
//join the team he wanted to join (else)