command /jail []: permission: jail.admin trigger: if arg is not set: send "&7-----------------------" to player send "&7* &c/jail []" send "&7* &c/jail on" send "&7* &c/jail off" send "&7-----------------------" to player if arg is set: if arg is not "on" or "off": set {_p} to arg 1 parsed as player if {_p} is online: set {_x} to 0 set {_y} to 0 set {_z} to 0 teleport {_p} to location at ({_x}, {_y}, {_z}) send "&7* &cPrzeteleportowano gracza!" to player else: send "&7* &cTen gracz nie jest online." to player else if arg is "on": set {wiadomosci} to true send "&7* &cWlaczyles wiadomosci!" to player else if arg is "off": set {wiadomosci} to false send "&7* &cWylaczyles wiadomosci!" to player else: send "&7-----------------------" to player send "&7* &c/jail []" send "&7* &c/jail on" send "&7* &c/jail off" send "&7-----------------------" to player on script load: if {wiad.czas} is not set: set {wiad.czas} to 600 loop all players: send loop-players title "&c&lJailSK by &adamixedixed" with subtitle "&2&l&nSkrypt Pomyslnie Zaladowano!" for 5 seconds every 1 second: if {wiad.czas} is more than 0: remove 1 from {wiad.czas} if {wiad.czas} is 0: set {wiad.czas} to 600 if {wiadomosci} is true: loop all players: if {w} is not set: set {w} to 1 if {w} is 1: send loop-players title "&a&lPoranny Apel" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 2: send loop-players title "&a&lSniadanie" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 3: send loop-players title "&a&lCzas Wolny" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 4: send loop-players title "&a&lCzas Na Prace" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 5: send loop-players title "&a&lCzas na Cwieczenia" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 6: send loop-players title "&a&lWieczorny Czas Wolny" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 7: send loop-players title "&a&lKolacja" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 8: send loop-players title "&a&lPrysznice" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 9: send loop-players title "&a&lWieczorny Apel" with subtitle "&7&lJAILBREAK" for 10 seconds add 1 to {w} else if {w} is 10: send loop-players title "&a&lGaszenie Swiatel" with subtitle "&7&lJAILBREAK" for 10 seconds set {w} to 1