command /policjant [] []: trigger: if arg 1 is "daj": if arg 2 is online: execute console command "pex user %arg 2% add policjant" add arg-2 to {policjanci::*} else: send "&8>> &cTen gracz jest offline!" stop if arg 1 is "usun": if arg 2 is set: execute console command "pex user %arg 2% remove policjant" remove arg-2 from {policjanci::*} else: send "&8>> &cPodaj gracza!" stop command /policjanci []: trigger: if {policjanci::*} is online: send "Lista policjantow online: {policjanci::*}" stop on rightclick on diamond block: "%region at player%" contains "mazebankwykrycie" if player's tool is clock named "&cC4": if {policjanci::*} is bigger than 0: if {c.sejf.%player%} is less than 1: send "&ePoczekaj na eksplozje" set {c.sejf.%player%} to 10 wait 5 seconds send "&cTrwa napad na MazeBank! Policja zostala powiadomiona o calym zdarzeniu!" apply slowness to player for 120 seconds set {napad.bank} to 1 wait 10 seconds create fake explosion at player execute console command "exo give %player% 1000000" remove 1 clock named "&cC4" from player else: send "&eBank zostal juz przez Ciebie obrabowany, wroc za 2 godziny." stop else: send "&cNie ma zadnego policjanta, wiec nie mozesz zrobic napadu!" stop else: send "&cMusisz posiadac C4" stop every 1 second: loop all players: if {c.sejf.%loop-player%} is bigger than 0: remove 1 from {c.sejf.%loop-player%} every 1 second: if {napad.bank} is 1: loop all players: if loop-player has permission "policjant": send "&eTrwa napad na MazeBank! Jedz szybko na zgloszenie" to loop-player set {napad.bank} to 0