Jump to content

Adding Teams


Shadow_UTubes

Recommended Posts

Hey so heres a Skript that splits players into two teams is there a way to make it split the players into 8 teams instead? Heres the code

 

command /split:
    trigger:
        set {_a} to 1
        set {_count} to number of all players
        set {_evencheck} to {_count} mod 2
        if {_evencheck} is equal to 0:
            loop players:
                if {_a} mod 2 = 1:
                    add loop-player to {team1::*}
                if {_a} mod 2 = 0:
                    add loop-player to {team2::*}
                add 1 to {_a}
                
command /teams:
    trigger:
        send "Team One consists of: %{team1::*}%"
        send "Team Two consists of: %{team2::*}%"

Link to comment
Share on other sites

dont make the same post twice

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...