options: wymagana.liczba.graczy: 4 #jak jest 4, to wymaga 3 graczy (logika x < x) ile.ma.odliczac: 10 on first join: teleport player to {spawn} variables: {zapis::*} = 0 on load: if {gra.server} is not set: set {gra.server} to "NO" else {gra.server} is "YES": set {gra.server} to "NO" on join: if {gra.%player%} is not set: set {gra.%player%} to "Online" if {druzyna.%player%} is not set: set {druzyna.%player%} to "Brak druzyny" command /dolacz: trigger: if {gra.%player%} is "Online": if {gra.server} is "NO": if {zapis} < {@wymagana.liczba.graczy}: add player to {zapis::*} add 1 to {zapis} send "&aDolaczyles do kolejki!" set {gra.%player%} to "W kolejce" execute console command "/rozdaj" teleport player to {lobby} stop else: send "Kolejka jest pelna!" else: send "Serwer juz wystartowal" else: send "Jestes juz w %{gra.%player%}%" command /rozdaj: trigger: if {zapis} is {@wymagana.liczba.graczy}: set {_odliczanie} to {@ile.ma.odliczac} loop {@ile.ma.odliczac} times: wait 1 second subtract 1 from {_odliczanie} broadcast "%{_odliczanie}%" if {_odliczanie} is 0: loop 10 times: broadcast "" broadcast "GRAMY GRAMY!" loop {zapis::*}: if {zapis} is {@wymagana.liczba.graczy}: set {gra.server} to "YES" if {blue} is smaller than {red}: add player to {blue::*} add 1 to {blue} set {druzyna.%loop-value%} to "blue" teleport loop-value to {s.blue} wait 1 tick remove loop-value from {zapis::*} else if {blue} is {red}: add player to {blue::*} add 1 to {blue} set {druzyna.%loop-value%} to "blue" teleport loop-value to {s.blue} wait 1 tick remove loop-value from {zapis::*} else: add loop-value to {red::*} add 1 to {red} set {druzyna.%loop-value%} to "red" teleport loop-value to {s.red} wait 1 tick remove loop-value from {zapis::*} else: stop command /resetgry: permission: reset.gry trigger: clear {zapis::*} clear {blue::*} clear {red::*} set {gra.server} to "NO" command /status: trigger: send "Status: %{gra.%player%}%" send "Druzyna: %{druzyna.%player%}%" command /resetgracza: trigger: set {gra.%player%} to "Online" set {druzyna.%player%} to "brak" command /ustawiamy []: trigger: if arg 1 is "red": set {s.red} to location of player send "&7Ustawiles spawn dla druzyny &4czerwonej" stop if arg 1 is "blue": set {s.blue} to location of player send "&7Ustawiles spawn dla druzyny &9niebieskiej" stop if arg 1 is "lobby": set {lobby} to location of player send "&eUstawiles lobby" stop if arg 1 is "setspawn": set {spawn} to location of player send "&eUstawiles spawn" stop # mozna edytować kod po swojemu, lecz jest zakaane upublkiowanie skryptu bez zgody autora!