Variables: {zombie} = 20 #Liczba zombie do odnowienia w ScoreBoardzie {ludzie} = 0 {wbiles.dayz.%player%} = false {leave.dayz} = true command /dayz [] []: trigger: if arg 1 is not set: if player has permission "Admin.dz": send "&b &c&LDay&a&LZ " send "&7-&e» &a/dayz setspawn [1-30] &7- Ustawia spawny" send "&7-&e» &a/dayz setlobby &7- Ustawia lobby (sklep z pistoletami, mapy itp.)" send "&7-&e» &a/dayz setzombie &7- Ustawia spawny zombie" send "&7-&e» &a/dayz leave &7- Wychodzi z areny" send "&7-&e» &a/dayz join &7- Dolacza do areny" if arg 1 is "setzombie": if player has permission "Admin.CS": if arg 2 is "1": set {zombie.1} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "2": set {zombie.2} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "3": set {zombie.3} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "4": set {zombie.4} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "5": set {zombie.5} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "6": set {zombie.6} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 1 is "setlobby": if arg 2 is "1": set {lobby.1} to location of player send "&c&LDay&a&LZ &e» &bUstawiono Lobby &eSpawn (%arg 2%)" if arg 2 is "2": set {lobby.2} to location of player send "&c&LDay&a&LZ &e» &bUstawiono Lobby &eSpawn (%arg 2%)" if arg 1 is "join": if {wbiles.dayz.%player%} is false: send "Dolaczyłes do areny" set {wbiles.dayz.%player%} to true teleport player to {lobby.1} or {lobby.2} else: send "&cBLAD: &aJestes juz na arenie!" if argument 1 is "leave": if {wbiles.dayz.%player%} is true: set {wbiles.dayz.%player%} to false else: send "&cBLAD: &aNie jestes na arenie!"