Skocz do zawartości
  • 0

Problem z gui w skquery


Xyrusek

Pytanie

Witam mam taki kod:   Chodzi o to że gdy klikne w 1 gui wypłate pieniędzy wtedy nie otwiera mi sie gui a itemy zaklada na moją głowe



on right click on sign:
    if line 1 is "[&cBANKOMAT&0]":
        if line 2 is "Kliknij, aby":
            if line 3 is "Wejsc do":
                if line 4 is "&cSYSTEMU":
                    open chest with 1 rows named "&8BANKOMAT" to the player
                    wait 4 ticks
                    format slot 0 of player with 1 of 397:3 named "&8Stan Konta: &c%{konto.%player%}%" to be unstealable
                    format slot 1 of player with 1 of gold ingot named "&8Kliknij, aby &cWyplacic pieniadze" to close then run "sudo %player% wyplac menu"
                    format slot 2 of player with 1 of iron ingot named "&8Kliknij, aby &cWplacic pieniadze" to close then run "sudo %player% wyplac menu"
                    format slot 3 of player with 1 of gold block named "&8Kliknij, aby &cPrzelac pieniadze" to close then run "sudo %player% przelej menu"    


command /wyplac [<text>]:
    trigger:
        if arg 1 is "menu":
            open chest with 1 rows named "&8Wyplac &cPieniadze" to the player
            wait 4 tick
            format slot 0 of player with 1 of 264 named "&8Wyplac &c1 zl" to close then run "sudo %player% wyplac 1"
            format slot 1 of player with 1 of 264 named "&8Wyplac &c50 zl" to close then run "sudo %player% wyplac 50"
            format slot 2 of player with 1 of 264 named "&8Wyplac &c100 zl" to close then run "sudo %player% wyplac 100"
            format slot 3 of player with 1 of 264 named "&8Wyplac &c200 zl" to close then run "sudo %player% wyplac 200"
            format slot 4 of player with 1 of 264 named "&8Wyplac &c500 zl" to close then run "sudo %player% wyplac 500"
            format slot 5 of player with 1 of 264 named "&8Wyplac &c1000 zl" to close then run "sudo %player% wyplac 1000"
        if arg 1 is "1":
            if {konto.%player%} <= 1:
                remove 1 from {konto.%player%}
                add 1 to {kasa.%player%}
                send "&aPomyslnie wyplaciles &c1 zl"
        if arg 1 is "50":
            if {konto.%player%} <= 50:
                remove 50 from {konto.%player%}
                add 50 to {kasa.%player%}
                send "&aPomyslnie wyplaciles &c50 zl"
        if arg 1 is "100":
            if {konto.%player%} <= 100:
                remove 100 from {konto.%player%}
                add 100 to {kasa.%player%}
                send "&aPomyslnie wyplaciles &c100 zl"
        if arg 1 is "200":
            if {konto.%player%} <= 200:
                remove 200 from {konto.%player%}
                add 200 to {kasa.%player%}
                send "&aPomyslnie wyplaciles &c200 zl"
        if arg 1 is "500":
            if {konto.%player%} <= 500:
                remove 500 from {konto.%player%}
                add 500 to {kasa.%player%}
                send "&aPomyslnie wyplaciles &c500 zl"
        if arg 1 is "1000":
            if {konto.%player%} <= 1000:
                remove 1000 from {konto.%player%}
                add 1000 to {kasa.%player%}
                send "&aPomyslnie wyplaciles &c1000 zl"            

command /wplac [<text>]:
    trigger:
        if arg 1 is "menu":
            open chest with 1 rows named "&8Wplac &cPieniadze" to the player
            wait 4 ticks
            format slot 0 of player with 1 of 264 named "&8Wplac &c1 zl" to close then run "sudo %player% wyplac 1"
            format slot 1 of player with 1 of 264 named "&8Wplac &c50 zl" to close then run "sudo %player% wyplac 50"
            format slot 2 of player with 1 of 264 named "&8Wplac &c100 zl" to close then run "sudo %player% wyplac 100"
            format slot 3 of player with 1 of 264 named "&8Wplac &c200 zl" to close then run "sudo %player% wyplac 200"
            format slot 4 of player with 1 of 264 named "&8Wplac &c500 zl" to close then run "sudo %player% wyplac 500"
            format slot 5 of player with 1 of 264 named "&8Wplac &c1000 zl" to close then run "sudo %player% wyplac 1000"
        if arg 1 is "1":
            if {kasa.%player%} <= 1:
                remove 1 from {kasa.%player%}
                add 1 to {konto.%player%}
                send "&aPomyslnie wplaciles &c1 zl"
        if arg 1 is "50":
            if {kasa.%player%} <= 50:
                remove 50 from {kasa.%player%}
                add 50 to {konto.%player%}
                send "&aPomyslnie wplaciles &c50 zl"
        if arg 1 is "100":
            if {kasa.%player%} <= 100:
                remove 100 from {kasa.%player%}
                add 100 to {konto.%player%}
                send "&aPomyslnie wplaciles &c100 zl"
        if arg 1 is "200":
            if {kasa.%player%} <= 200:
                remove 200 from {kasa.%player%}
                add 200 to {konto.%player%}
                send "&aPomyslnie wplaciles &c200 zl"
        if arg 1 is "500":
            if {kasa.%player%} <= 500:
                remove 500 from {kasa.%player%}
                add 500 to {konto.%player%}
                send "&aPomyslnie wplaciles &c500 zl"
        if arg 1 is "1000":
            if {kasa.%player%} <= 1000:
                remove 1000 from {kasa.%player%}
                add 1000 to {konto.%player%}
                send "&aPomyslnie wplaciles &c1000 zl"

Odnośnik do komentarza
https://skript.pl/temat/14963-problem-z-gui-w-skquery/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...