Random Teaming!
#1

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

how many teams do you have?you want like randomly set his team to random one?
Reply
#3

For example you could have:
pawn Код:
new redTeam;
new blueTeam;
Then just use:
pawn Код:
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.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)