Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #tu wpisujesz jaką chcesz mieć komendę na GUI (domyslnie /waluta)
- komenda: waluta
- on join:
- if {DUDI::waluta::%player%} is not set:
- set {DUDI::waluta::%player%} to 0
- every 10 minutes:
- loop all players:
- if {DUDI::waluta::%loop-player%} is not set:
- set {DUDI::waluta::%loop-player%} to 0
- add 3 to {DUDI::waluta::%loop-player%}
- command /{@komenda} [<text>]:
- trigger:
- set {_x} to chest with 1 rows named "Waluta"
- set slot 0 of {_x} to iron block named "OBIERZ VIP'a" with lore "Koszt: 65 walut.||Posiadasz: %{DUDI::waluta::%player%}% walut."
- set slot 8 of {_x} to gold block named "OBIERZ HELPERA'a" with lore "Koszt: 180 walut.||Posiadasz: %{DUDI::waluta::%player%}% walut."
- open {_x} to player
- on inventory click:
- if inventory name of player's current inventory is "Waluta":
- cancel event
- if clicked slot is 0:
- if {DUDI::waluta::%player%} is larger than or equal to 65:
- remove 65 from {DUDI::waluta::%player%}
- execute console command "pex user %player% group set VIP"
- close player's inventory
- send "Zakupiles vipa."
- stop
- send "Nie masz tylu walut."
- stop
- if clicked slot is 8:
- if {DUDI::waluta::%player%} is larger than or equal to 180:
- remove 180 from {DUDI::waluta::%player%}
- execute console command "pex user %player% group set HELPER"
- close player's inventory
- send "Zakupiles HELPERA"
- stop
- send "Nie masz tylu walut."
- stop
Advertisement
Add Comment
Please, Sign In to add comment