command /pay [] []: 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 number-argument is less than 0: send "&4Nie mozesz wyslac takiej ilosci pieniedzy" stop 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 "&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"