Hello, I've been trying to create a basic skyflag minigame skript, but I ran into a problem. I don't know how to sort player 1 to team a and player 2 to team b and again player 3 to team a, etc.
Code:
every 20 ticks:
if size of {sf.players::*} > 1:
if {sf.running} is false:
set {sf.running} to true
if {sf.teamred::*} is 0:
add player to {sf.teamred::*}
if {sf.teamblue::*} is 0:
add player to {sf.teamblue::*}