# __ __ _ _ _ ___ ___ ____ # \ \ / / (_) | |_ | |_ | \ _ _ __ _ __ __ __ |_ ) / \ # \ \/\/ / | | | _| | ' \ | |) | | '_| / _` | \ V V / / / | () | # \_/\_/ |_| \__| |_||_| |___/ |_| \__,_| \_/\_/ /___|(_) \____/ # # # # # # # Aktualizacje: https://skript.pl/temat/49176-withdraw-20-skrypt-na-wp%C5%82acaniewyp%C5%82acanie-pieni%C4%99dzy/ # options: version: "&2&lWithDraw 2.2&r" nazwa_przedmiotu: "&a&lBanknot" lore1: "&e&oWartosc&r&7&o:&r &6&o$%arg%&r" lore2: "&r" lore3: "&7Kliknij PPM, aby wpłacić" permissia_admin: withdraw.admin wiadomosc_wyplaty: "&eWyplaciles&r &a%arg%&r &epieniedzy z konta&r!" #%arg%, to ilość pieniędzy! Nie zmieniaj tego! wiadomosc_wplaty: "&eWplaciles&r &a%{_money}%&r &ena konto!" #%{_money}%, to ilość pieniędzy! Nie zmieniaj tego! command /withdraw []: aliases: wyplac trigger: if arg 1 is not set: send "&eWpisz&r&6:&r &7/withdraw help&r&e, aby uzyskać więcej informacji" stop if arg 1 is "help": loop 100 times: send "&r" to player send {@version} send "&r" send "&aPrzeładowanie skryptu&r&2:&r &7/withdraw reload&r" send "&aWypłata pieniędzy&r&2:&r &7/withdraw &o[ilość pieniędzy]&r" stop if arg 1 is "reload": if player has permission "{@permissia_admin}": execute console command "sk reload %the script's name%" send "&aPomyślnie przeładowano skrypt" to player stop send "&cNie masz dostepu do tej komendy!" to player stop if {gm::%player%} is true: send "&cMasz gamemode 1, więc nie możesz odebrać banknotów!" to player stop if arg 1 parsed as number is set: set {_arg} to arg 1 parsed as number if player's money <= {_arg}: send "&cNie masz tyle pieniedzy!" stop if player has enough space for 1 paper named {@nazwa_przedmiotu}: remove {_arg} from player's money give paper named {@nazwa_przedmiotu} with lore {@lore1} and {@lore2} and {@lore3} to player send "&r" send {@wiadomosc_wyplaty} send "&r" stop send "&cMasz pełny ekwipunek!" on gamemode change: if player's gamemode is creative: set {gm::%player%} to true loop items in player's inventory: if name of loop-item is {@nazwa_przedmiotu}: remove loop-item from player's inventory send "" to player send "&cOdebrano ci banknot ze względu na zmianę gamemode!" to player send "" to player if player's gamemode is survival: set {gm::%player%} to false on right click with paper: if name of player's tool is {@nazwa_przedmiotu}: set {_!::*} to uncolored line 1 of lore of player's tool split at "$" set {_money} to {_!::2} parsed as number remove 1 of paper named {@nazwa_przedmiotu} from player's inventory add {_money} to player's money send "&r" send {@wiadomosc_wplaty} send "&r" #CHWDP #TEAMLUCYFER