command /config []: permission: op trigger: if arg parsed as integer is less or equal to 3: set {loc::%arg-1%} to location of player else if arg 1 is not set: send "&cPoprawne użycie:%nl%1 - lokacja nr 1%nl%2 - lokacja nr 2%nl%3 - lokacja poczekalni%nl%4 - lokacja spawna" command /dolacz: trigger: if {sloty} > 24: send "&cSloty są pełne" else if {sloty} <= 24: teleport player to {loc::3} add player to {ludzie::*} add 1 to {sloty} {sloty} = 24 set {_n} to 0 set {gra} to true loop 10 times: add 1 to {_n} send "&aOdliczanie: %{_n}%" loop {ludzie::*}: chance of 50%: add loop-value to {biali::*} teleport loop-value to {loc::1} else: add loop-value to {czarni::*} teleport loop-value to {loc::2} command /opusc: trigger: teleport player to {loc::4} remove player from {ludzie::*} on player move: if {ludzie::*} contains player's name: cancel event send "&aNie możesz się ruszać dopóki gra się nie zacznie!" on join: if {biali::*} contains player's name: teleport player to {loc::1} else if {czarni::*} contains player's name: teleport player to {loc::2} on death: if {biali::*} contains victim's name: remove victim from {biali::*} else if {czarni::*} contains victim's name: remove victim from {czarni::*} set {_n} to 0 set {_n2} to 0 loop {biali::*}: add 1 to {_n} {_n} = 0 send "&cDruzyna czarnych wygrala!" to all players x(victim) loop {czarni::*}: add 1 to {_n2} {_n2} = 0 send "&cDruzyna bialych wygrala!" to all players x(victim) function x(p: player): delete {ludzie::*} and {czarni::*} and {biali::*} set {sloty} to 0 delete {gra} on chat: {gra} = true cancel event if {czarni::*} contains player's name: loop {czarni::*}: send "%message%" to loop-value if {biali::*} contains player's name: loop {biali::*}: send "%message%" to loop-value