Skocz do zawartości
  • 0

Problem z banami w gui


Moneverix

Pytanie

command /bangui [<offline player>]:
    permission: op
    trigger:
        set {_p} to "%arg-1%"
        set {_gui} to a new chest inventory with 3 row named "&cBan GUI"
        set slot 10 of {_gui} to a book of infinity 10 named "&cCheaty"
        set slot 26 of {_gui} to arg 1's skull named "&cGracz ktorego chcesz zbanowac:" with lore "&e&l%arg-1%"
        open {_gui} to player

on inventory click:
    if name of player's current inventory is "&cBan GUI":
        if index of event-slot = 10:
            cancel event
            ban {_p} due to "&cCheatowanie | 2 Dni" for 2 days
        if index of event-slot = 22:
            cancel event
            close player's inventory
Jestem nowy jesli chodzi o Skript, moze ktos pomoc? Probowalem zrobic gui na bana
xAxee

Wstawiam w code, poprawiam tytuł i treść

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /bangui [<offline player>]:
    permission: op
    trigger:
        set {pban::%player%} to arg
        set {_gui} to a new chest inventory with 3 row named "&cBan GUI"
        set slot 10 of {_gui} to a book of infinity 10 named "&cCheaty"
        set slot 26 of {_gui} to arg 1's skull named "&cGracz ktorego chcesz zbanowac:" with lore "&e&l%{pban::%player%}%"
        open {_gui} to player

on inventory click:
    if name of player's current inventory is not "&cBan GUI":
        stop
    cancel event
    if index of event-slot = 10:
        ban {pban::%player%} due to "&cCheatowanie | 2 Dni" for 2 days
        kick {pban::%player%} due to "&cCheatowanie | 2 Dni"

 

Odnośnik do komentarza
Udostępnij na innych stronach

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ę...