@Kormic powiesz czm to mi nie dziala?
command /wyplac [<integer>]:
aliases: /withdraw, /banknot
trigger:
set {_h} to arg 1 - 1
if arg 1 is set:
if {money::%player%} > {_h}:
remove {_h} from {money::%player%}
give player 1 paper of fortune 10 named "&6Banknot &a%arg 1%$"
send "&aOtrzymales banknot o wartosci &a%arg 1%$" to player
else:
send "&cMasz za malo pieniedzy!" to player
stop
on right click with paper:
set {_n} to substring of player's tool's name from character 9 to (length of player's tool's name - 1)
if name of player's tool is "&6Banknot &a%{_n}%$":
add {_n} to {money::%player%}
wszystko dziala oprocz tego co jets po tym 2 evencie