Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {polowana.%player%} = false
- {kasa.%player%} = 0
- {wyznaczassi.%player%} = false
- command /hitman [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&c/hitman <cena> <gracz>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 1 contains "-" or ".":
- send "&cNawet nie proboj"
- else:
- set {_cena} to arg 1 parsed as number
- set {_gracz} to arg 2 parsed as player
- set {nagroda.za.%{_gracz}%} to {_cena}
- if {_cena} is not number:
- send "&c%arg 1% nie jest liczba!"
- else:
- if {wyznaczassi.%player%} is true:
- send "&cWyznaczyles juz nagrode!"
- else:
- if {_gracz} is online:
- if {kasa.%player%} is greater than or equal to {_cena}:
- broadcast "&7Gracz &c%player% &7wyznaczyl nagrode za glowe gracza &c%{_gracz}%&7! Nagroda: &c%{_cena}%$"
- set {polowana.%{_gracz}%} to true
- set {wyznacza.nazwa.%{_gracz}%} to "%player%"
- set {wyznaczassi.%player%} to true
- else:
- send "&cNawet nie masz tyle kasy ;-;"
- else:
- send "&cGracz musi byc online"
- command /money:
- trigger:
- send "&7Twoje pieniadze: &c%{kasa.%player%}%$"
- on join:
- if {kaskastart.%player%} is not set:
- add 500 to {kasa.%player%} #TUTAJ ZMIEN JEZELI CHCESZ ABY PO WEJSCIU NA SERWER (PIERWSZY RAZ) DOSTAWALO SIE KASE
- set {kaskastart.%player%} to "ZDOBYL KASE"
- on death:
- victim is a player
- attacker is a player
- if {polowana.%victim%} is true:
- broadcast "&c%attacker% &7zabil &c%victim% &7z nagroda! Otrzymuje %{nagroda.za.%victim%}%$"
- add {nagroda.za.%victim%} to {kasa.%attacker%}
- set {wyznaczassi.%{wyznacza.nazwa.%victim%}%} to false
- set {polowana.%victim%} to false
- remove {nagroda.za.%victim%} from {kasa.%victim%}
- clear {wyznacza.nazwa.%victim%}
- clear {nagroda.za.%victim%}
- #Komenda DODATKOWA, ktora daje kase z konsoli#
- command /dukase <player> <number>:
- executable by: console
- trigger:
- set {kasa.%arg 1%} to arg 2
- #Komenda DODAKTOWA, ktora daje kase z konsoli#
- command /pay [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&c/pay <gracz> <hajs>"
- if arg 1 is set:
- if arg 2 is set:
- if arg 2 contains "-" or ".":
- send "&cNie ma!"
- else:
- set {_a1} to arg 1 parsed as player
- set {_a2} to arg 2 parsed as number
- if {kasa.%player%} is greater than or equal to {_a2}:
- broadcast "&7Przelano &c%{_a2}% &7kasy dla &c%{_a1}%"
- remove {_a2} from {kasa.%player%}
- add {_a2} to {kasa.%{_a1}%}
- else:
- send "&cNie masz tyle hajsu"
Advertisement
Add Comment
Please, Sign In to add comment