Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on sign:
- if line 1 of clicked block is "&3&lKopalnia":
- if line 2 of clicked block is "&4&lCena:":
- if line 3 of clicked block is "&6&l5000$":
- if player's balance is greater than or equal to 5000:
- remove 5000 from player's balance
- send "&2A?» &6Wykupiles licence na kopalnie!"
- set {mozliwosckopania.%player%} to 2
- execute player command "/kop"
- else:
- send "&2A?» &cNie masz wystarczajaco duzo pieniedzy!"
- every 1 minute:
- loop all players:
- if {mozliwosckopania.%loop-player%} is set:
- if {mozliwosckopania.%loop-player%} is smaller than 1:
- clear {mozliwosckopania.%loop-player%}
- teleport loop-player to {spawn}
- send "Skonczyla sie licencja!" to loop-player
- else:
- remove 1 from {mozliwosckopania.%loop-player%}
- on entering region "kopalnia":
- if {mozliwosckopania.%player%} is not set:
- teleport player to {spawn}
- command /ustawspawn:
- trigger:
- set {spawn} to location of player
- command /reset:
- trigger:
- loop all players:
- clear {mozliwosckopania.%loop-player%}
- send "&2Zresetowales czas kopania dla wszystkich"
- stop
Advertisement
Add Comment
Please, Sign In to add comment