jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 08 Jan 2013 06:24 PM |
Hello,I want to know 2 questions
1 - How do you find the value of players in a team?
2 - How do you split players up into a team like The game had 10 players and then it put 5 on each team
|
|
|
| Report Abuse |
|
|
Flash77
|
  |
| Joined: 14 Jun 2008 |
| Total Posts: 550 |
|
|
| 08 Jan 2013 06:28 PM |
number_players ,players = #game.Players:GetPlayers(), game.Players:GetPlayers()
for i = 1,number_players do if i > number_players/2 then players[i].TeamColor = SECOND TEAM COLOR else players[i].TeamColor = FIRST TEAM COLOR end end
thats how you could split up the teams |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
| |
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 08 Jan 2013 06:30 PM |
| Still got a question, how do you find how many players are on a team? |
|
|
| Report Abuse |
|
|