SHOW:
|
|
- or go back to the newest paste.
| 1 | variables: | |
| 2 | {MoneyForTime.status} = 1
| |
| 3 | options: | |
| 4 | tag: &7[&aMoneyForTime&7] | |
| 5 | ilosc.kasy: 1 | |
| 6 | permission: &4Nie masz uprawnien by uzywac tej komendy! | |
| 7 | max.money: 100 | |
| 8 | - | on first join: |
| 8 | + | |
| 9 | set {kasa.%player%.kasa::ilosc} to 0
| |
| 10 | - | log "%player%'s | IP: %IP of player% | Dolaczyl: %now% " to "IP" |
| 10 | + | {k.pvp::%name of player%} is not set:
|
| 11 | - | set {kasa.%player%.kasa::ilosc} to 0
|
| 11 | + | set {sekundy::%name of player%} to 0
|
| 12 | {minuty::%name of player%} is not set:
| |
| 13 | set {minuty::%name of player%} to 0
| |
| 14 | {godziny::%name of player%} is not set:
| |
| 15 | - | stop |
| 15 | + | set {godziny::%name of player%} to 0
|
| 16 | stop | |
| 17 | on quit: | |
| 18 | {MoneyForTime.status} is 1:
| |
| 19 | loop all players: | |
| 20 | if {kasa.%player%.kasa::ilosc} is less than {@max.money}:
| |
| 21 | add {kasa.%player%.kasa::ilosc} to the player's account
| |
| 22 | set {kasa.%loop-player%.kasa::ilosc} to 0
| |
| 23 | set {godziny::%name of player%} to 0
| |
| 24 | set {minuty::%name of player%} to 0
| |
| 25 | - | set {kasa.%loop-player%.kasa::ilosc} to 0
|
| 25 | + | set {sekundy::%name of player%} to 0
|
| 26 | stop | |
| 27 | on pressure plate: | |
| 28 | {MoneyForTime.status} is 1:
| |
| 29 | if {kasa.%player%.kasa::ilosc} is less than {@max.money}:
| |
| 30 | - | add {kasa.%player%.kasa::ilosc} to the player's account
|
| 30 | + | |
| 31 | - | send "{@tag} Dodano &a%{kasa.%player%.kasa::ilosc}%$ &7do twojego konta"
|
| 31 | + | send "{@tag} Dodano &a%{kasa.%player%.kasa::ilosc}%$ &7do twojego konta"
|
| 32 | - | set {kasa.%player%.kasa::ilosc} to 0
|
| 32 | + | send "{@tag} Na serwerze byles:"
|
| 33 | send "&7%{godziny::%player%}% &fgodziny &7%{minuty::%player%}% &fminuty &7%{sekundy::%player%}% &fsekund(y)"
| |
| 34 | - | |
| 34 | + | set {kasa.%player%.kasa::ilosc} to 0
|
| 35 | set {godziny::%name of player%} to 0
| |
| 36 | set {minuty::%name of player%} to 0
| |
| 37 | set {sekundy::%name of player%} to 0
| |
| 38 | stop | |
| 39 | ||
| 40 | every 1 second: | |
| 41 | {MoneyForTime.status} is 1:
| |
| 42 | loop all players: | |
| 43 | add {@ilosc.kasy} to {kasa.%loop-player%.kasa::ilosc}
| |
| 44 | if {kasa.%loop-player%.kasa::ilosc} is {@max.money}:
| |
| 45 | set {kasa.%loop-player%.kasa::ilosc} to 0
| |
| 46 | stop | |
| 47 | every 1 seconds: | |
| 48 | - | if arg 1 is "reload" or "r": |
| 48 | + | loop all players: |
| 49 | add 1 to {sekundy::%loop-player%}
| |
| 50 | if {sekundy::%loop-player%} is 60:
| |
| 51 | add 1 to {minuty::%loop-player%}
| |
| 52 | set {sekundy::%loop-player%} to 0
| |
| 53 | if {minuty::%loop-player%::gracz} is 60:
| |
| 54 | add 1 to {godziny::loop-player}
| |
| 55 | set {minuty::%loop-player%} to 0
| |
| 56 | stop | |
| 57 | command /moneyfortime [<text>]: | |
| 58 | trigger: | |
| 59 | if player has permission "MoneyForTime.admin": | |
| 60 | if arg 1 is "on": | |
| 61 | set {MoneyForTime.status} to 1
| |
| 62 | send "{@tag} &7MoneyForTime &awlaczony"
| |
| 63 | stop | |
| 64 | if arg 1 is "off": | |
| 65 | set {MoneyForTime.status} to 0
| |
| 66 | loop all players: | |
| 67 | send "{@tag} &7MoneyForTime &cwylaczony"
| |
| 68 | set {kasa.%player%.kasa::ilosc} to 0
| |
| 69 | stop | |
| 70 | if arg 1 is "reload": | |
| 71 | execute player command "sk reload %script%" | |
| 72 | send "{@tag} &cPrzeladowano"
| |
| 73 | stop | |
| 74 | else: | |
| 75 | send "{@tag} &c/MoneyForTime <&fon/off&c>"
| |
| 76 | stop | |
| 77 | else: | |
| 78 | send "{@tag} {@permission}"
| |
| 79 | stop | |
| 80 | ||
| 81 | command /czas: | |
| 82 | trigger: | |
| 83 | send "Na serwerze jestes juz:" | |
| 84 | if {godziny.%player%} is set:
| |
| 85 | send "&7%{godziny::%player%}% &fgodziny &7%{minuty::%player%}% &fminuty &7%{sekundy::%player%}% &fsekund(y)"
| |
| 86 | stop | |
| 87 | if {minuty.%player%} is set:
| |
| 88 | send "&7%{minuty::%player%}% &fminuty &7%{sekundy::%player%}% &fsekund(y)"
| |
| 89 | stop | |
| 90 | if {sekundy.%player%} is set:
| |
| 91 | send "&7%{sekundy::%player%}% &fsekund(y)"
| |
| 92 | stop |