Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {MoneyForTime.status} = 1
- options:
- tag: &7[&aMoneyForTime&7]
- ilosc.kasy: 1
- permission: &4Nie masz uprawnien by uzywac tej komendy!
- on first join:
- {MoneyForTime.status} is 1:
- log "%player%'s | IP: %IP of player% | Dolaczyl: %now% " to "IP"
- set {kasa.%player%.kasa::ilosc} to 0
- stop
- on join:
- set {kasa.%player%.kasa::ilosc} to 0
- stop
- every 1 second:
- {MoneyForTime.status} is 1:
- loop all players:
- add {@ilosc.kasy} to {kasa.%loop-player%.kasa::ilosc}
- stop
- on quit:
- {MoneyForTime.status} is 1:
- loop all players:
- add {kasa.%player%.kasa::ilosc} to the player's account
- set {kasa.%loop-player%.kasa::ilosc} to 0
- stop
- on pressure plate:
- {MoneyForTime.status} is 1:
- add {kasa.%player%.kasa::ilosc} to the player's account
- send "{@tag} Dodano &a%{kasa.%player%.kasa::ilosc}%$ &7do twojego konta"
- set {kasa.%player%.kasa::ilosc} to 0
- stop
- command /moneyfortime [<text>]:
- trigger:
- if player has permission "MoneyForTime.admin":
- if arg 1 is "on":
- set {MoneyForTime.status} to 1
- send "{@tag} &7MoneyForTime &awlaczony"
- stop
- if arg 1 is "off":
- set {MoneyForTime.status} to 0
- loop all players:
- send "{@tag} &7MoneyForTime &cwylaczony"
- set {kasa.%player%.kasa::ilosc} to 0
- stop
- if arg 1 is "reload" or "r":
- execute player command "sk reload %script%"
- send "{@tag} &cPrzeladowano"
- else:
- send "{@tag} &c/MoneyForTime <&fon/off&c>"
- stop
- else:
- send "{@tag} {@permission}"
- stop
Add Comment
Please, Sign In to add comment