command /pay [<player>] [<text>]:
trigger:
if arg 1 is set:
if arg 2 is set:
if file "plugins/Skript/scripts/BazaMSQL/%arg 1%.yml" exists:
set {_p1} to single value "stankonta" get of "plugins/Skript/scripts/BazaMSQL/%player%.yml"
set {_p2} to single value "stankonta" get of "plugins/Skript/scripts/BazaMSQL/%arg 1%.yml"
set {_arg2} to arg 2
set {_arg2} to {_arg2} parsed as integer
if {_arg2} is integer:
if {_p1} >= arg 2:
remove {_arg2} from {_p1}
set "stankonta" to "%{_p1}%" in yaml file "plugins/Skript/scripts/BazaMSQL/%player%.yml"
add {_arg2} to {_p2}
set "stankonta" to "%{_p2}%" in yaml file "plugins/Skript/scripts/BazaMSQL/%arg 1%.yml"
send "&2&k;&a Przelales graczowi&2 %arg 1%&a monety o wartosci&2 %{_arg2}%&a!"
send "&2&k;&a Dostales&2 %{_arg2}%&a od gracza&2 %player%" to arg 1
else:
send "&4Nie posiadasz tyle pieniedzy!"
else:
send "&4Podano zla kwote!"
else:
send "&4Blad:&c Ten gracz nie posiada bazy danych"
else:
send "&6»&f Uzycie:&e /pay Gracz&n ilosc"
else:
send "&6»&f Uzycie:&e /pay &nGracz&r&e ilosc"
Zawsze mam za mało pieniędzy , wie ktoś co jest nie tak?
Pytanie
KGaZ 28
Zawsze mam za mało pieniędzy , wie ktoś co jest nie tak?
Odnośnik do komentarza
Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi