Random team assigning, team members limit:
#3

use a variable with MAX_TEAM_PLAYERS, assign the player's team to team 1. add if team 1 is more than team 2 then set the player to team 2, otherwise, set them to team 1. if team 1 = MAX_TEAM_PLAYERS then set it to the other team, else return an error message that the server is full.
Reply


Messages In This Thread
Random team assigning, team members limit: - by Twizted - 20.07.2014, 11:26
Re: Random team assigning, team members limit: - by BroZeus - 20.07.2014, 12:29
Re: Random team assigning, team members limit: - by TakeiT - 20.07.2014, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)