Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {sektor.%player%} = "a"
- options:
- kasa.sektor.b: 500
- kasa.sektor.c: 1000
- kasa.sektor.d: 1500
- kasa.sektor.e: 2000
- command /sektor [<text>]:
- trigger:
- player has permission "sektor.b":
- arg 1 is "b":
- {sektor.%player%} is "a":
- player's money is greater than {@kasa.sektor.b} - 1:
- remove {@kasa.sektor.b}$ from player account
- execute console command "/pex user %player% group set sektorb"
- send "&2Awansoales na sektor &cB" to the player
- broadcast "&9%display name of player% &2Awansowal na sektor &cB"
- set {sektor.%player%} to "b"
- stop
- send "&cNie posiadasz {@kasa.sektor.b}$"
- stop
- send "&cJestes juz w wyzszym sektorze!"
- stop
- arg 1 is "c":
- {sektor.%player%} is "b":
- player's money is greater than {@kasa.sektor.c} - 1:
- remove {@kasa.sektor.c}$ from player account
- execute console command "/pex user %player% group set sektorc"
- send "&2Awansoales na sektor &cC" to the player
- broadcast "&9%display name of player% &2Awansowal na sektor &cC"
- set {sektor.%player%} to "c"
- stop
- send "&cNie posiadasz {@kasa.sektor.c}$"
- stop
- send "&4Nie masz, lub masz wyzszy sektor niż &cB"
- stop
- arg 1 is "d":
- {sektor.%player%} is "c":
- player's money is greater than {@kasa.sektor.d} - 1:
- remove {@kasa.sektor.d}$ from player account
- execute console command "?pex user %player% group set sektord"
- send "&2Awansoales na sektor &cD" to the player
- broadcast "&9%display name of player% &2Awansowal na sektor &cD"
- set {sektor.%player%} to "d"
- stop
- send "&cNie posiadsaz {@kasa.sektor.d}$"
- stop
- send "&cNie masz, lub asz wyzszy sektor nic &cC"
- stop
- send "&cBlad: &4/sektor <a,b,c,...>"
- stop
- send "&cNo permission"
- stop
Advertisement
Add Comment
Please, Sign In to add comment