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!
- max.money: 100
- on join:
- set {kasa.%player%.kasa::ilosc} to 0
- {k.pvp::%name of player%} is not set:
- set {sekundy::%name of player%} to 0
- {minuty::%name of player%} is not set:
- set {minuty::%name of player%} to 0
- {godziny::%name of player%} is not set:
- set {godziny::%name of player%} to 0
- stop
- on quit:
- {MoneyForTime.status} is 1:
- loop all players:
- if {kasa.%player%.kasa::ilosc} is less than {@max.money}:
- add {kasa.%player%.kasa::ilosc} to the player's account
- set {kasa.%loop-player%.kasa::ilosc} to 0
- set {godziny::%name of player%} to 0
- set {minuty::%name of player%} to 0
- set {sekundy::%name of player%} to 0
- stop
- on pressure plate:
- {MoneyForTime.status} is 1:
- if {kasa.%player%.kasa::ilosc} is less than {@max.money}:
- add {kasa.%player%.kasa::ilosc} to the player's account
- send "{@tag} Dodano &a%{kasa.%player%.kasa::ilosc}%$ &7do twojego konta"
- send "{@tag} Na serwerze byles:"
- send "&7%{godziny::%player%}% &fgodziny &7%{minuty::%player%}% &fminuty &7%{sekundy::%player%}% &fsekund(y)"
- set {kasa.%player%.kasa::ilosc} to 0
- set {godziny::%name of player%} to 0
- set {minuty::%name of player%} to 0
- set {sekundy::%name of player%} to 0
- stop
- every 1 second:
- {MoneyForTime.status} is 1:
- loop all players:
- add {@ilosc.kasy} to {kasa.%loop-player%.kasa::ilosc}
- if {kasa.%loop-player%.kasa::ilosc} is {@max.money}:
- set {kasa.%loop-player%.kasa::ilosc} to 0
- stop
- every 1 seconds:
- loop all players:
- add 1 to {sekundy::%loop-player%}
- if {sekundy::%loop-player%} is 60:
- add 1 to {minuty::%loop-player%}
- set {sekundy::%loop-player%} to 0
- if {minuty::%loop-player%::gracz} is 60:
- add 1 to {godziny::loop-player}
- set {minuty::%loop-player%} 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":
- execute player command "sk reload %script%"
- send "{@tag} &cPrzeladowano"
- stop
- else:
- send "{@tag} &c/MoneyForTime <&fon/off&c>"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- command /czas:
- trigger:
- send "Na serwerze jestes juz:"
- if {godziny.%player%} is set:
- send "&7%{godziny::%player%}% &fgodziny &7%{minuty::%player%}% &fminuty &7%{sekundy::%player%}% &fsekund(y)"
- stop
- if {minuty.%player%} is set:
- send "&7%{minuty::%player%}% &fminuty &7%{sekundy::%player%}% &fsekund(y)"
- stop
- if {sekundy.%player%} is set:
- send "&7%{sekundy::%player%}% &fsekund(y)"
- stop
Add Comment
Please, Sign In to add comment