05.05.2014, 10:56
So guys, i want to make random team select for players.When they type /cmd, they get in a dm as a team.I tried it like we create random spawn.but that didnt worked though. Any help?
new redTeam;
new blueTeam;
if(redTeam > blueTeam)
{
// Put your player in the blue team
}
else if(blueTeam > redTeam)
{
// Put your player in the red team
}
else
{
// Just put the player in red or blue, team will be unbalanced until the next player joins.
}