Solved All Players in two diffrend Teams?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

zjqxtin_

Member
Sep 12, 2020
1
0
0
44
Hello, I have a problem and I don't know how to fix it. I want to split all players into two teams. Example: 10 players -> 5 in {blue :: *} and 5 in {red :: *}! Can it be done differently than:

Code:
command /start:
    permission: event.admin
    permission message: {@noPerms}
    trigger:
          loop all players:
               add loop-players to {players::*}
               add {players::1} to {blue::*}
               add {players::2} to {red::*}
               ...
 
Status
Not open for further replies.