Posts: 691
Threads: 96
Joined: Jan 2012
Reputation:
0
Im looking to see if it is possible to set a maximum user amount to SetPlayerTeam, and if there is a way to get the members that are in the team(integer). I want to use this to add a max to the round in my TDM server, and also so players can see who is in what team so they can join based on that.
Posts: 99
Threads: 1
Joined: Mar 2013
Reputation:
0
i dont think u can set the maximum team members for that function, all u need to do is create an array that holds every team members count, then when the max is reached u just disallow players from joining it
this array gets initialized to 0 (for all teams), then when somebody joins a certain team, it gets inceased by one, and when somebody leaves, it gets decreased, as simple as that