skinny02
|
  |
| Joined: 07 Apr 2013 |
| Total Posts: 50 |
|
|
| 23 Apr 2013 05:56 PM |
| I have 3 teams, I want the limit to be 5 per team, how would I do this? |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Apr 2013 06:07 PM |
But still, maybe 14 people go to the 1st team and 1 other goes to another.
You need to add a value in the team switcher, and if the value is true then the script works
you need to rapidly get children of players and check their team, add to a table of like
blue = {} red = {} yellow = {}
table.insert(blue, blueppl) table.insert(red, redppl) table.insert(yellow, ylwppl)
hopefully you see where i'm going with this |
|
|
| Report Abuse |
|
|
skinny02
|
  |
| Joined: 07 Apr 2013 |
| Total Posts: 50 |
|
|
| 23 Apr 2013 07:11 PM |
| not really, lol. I'm trying to make a GUI so you can pick teams. |
|
|
| Report Abuse |
|
|
ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 23 Apr 2013 07:14 PM |
Seriously, just use a table of all people in the team. I think do something like this:
if #TEAM == 5 then
|
|
|
| Report Abuse |
|
|
skinny02
|
  |
| Joined: 07 Apr 2013 |
| Total Posts: 50 |
|
|
| 23 Apr 2013 07:48 PM |
blue = {} red = {} yellow = {}
table.insert(blue, blueppl) table.insert(red, redppl) table.insert(yellow, ylwppl)
is there anything I need to add or do I just slap it into a script? |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 07:49 PM |
.... Learn to script please |
|
|
| Report Abuse |
|
|
skinny02
|
  |
| Joined: 07 Apr 2013 |
| Total Posts: 50 |
|
| |
|
skinny02
|
  |
| Joined: 07 Apr 2013 |
| Total Posts: 50 |
|
|
| 23 Apr 2013 07:51 PM |
| also everything i try i forget everything the next day. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2013 08:01 PM |
If that's happening, you're probably just skimming information and not trying to take your time and absorb the stuff. .-.
Please try. It's not even that hard. Just take your time and learn the basic things first. |
|
|
| Report Abuse |
|
|
skinny02
|
  |
| Joined: 07 Apr 2013 |
| Total Posts: 50 |
|
|
| 23 Apr 2013 08:04 PM |
| It's embarrasing enough that I'm in 9th grade and I can't even cope with a programming language designed for kids to use easily. I read it thourougly and yet I forget how to do it within a few hours. |
|
|
| Report Abuse |
|
|