Skocz do zawartości
  • 0

Problem z skryptem


hssk

Pytanie

Witam, robie kity w gui. zrobilem wlasny cooldawn z variablasamy i nie wiem gdzie dac owy kod: 

Cytat

else:
       if player doesn't have permission "kitsponsor.*":
       send player title "&7Nie masz dostepu! &6[kitsponsor.*]" for 5 seconds

tutaj macie caly kod:

 

Odnośnik do komentarza
https://skript.pl/temat/37601-problem-z-skryptem/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Myślę, że o to Ci chodziło:

command /kit3:
    trigger:
        if player has permission "kitsponsor.*":
            if {kitsponsor.%player%} is true:
                play raw sound "random.pop" at player with pitch 1 volume 5
                send player title "&7Odebrales &6&lzestaw sponsora" for 5 seconds
                give player diamond pickaxe of efficiency 5, unbreaking 3, fortune 3 named "&6Diamentowy kilof" with lore "|| &7» Diamentowy kilof z zestawu &6&lsponsora"
                give player 12 golden apple named "&6Zlote jablko" with lore "|| &7» Zlote jablko z zestawu &6&lsponsor"
                give player diamond sword of sharpness 3, unbreaking 2, fire aspect 1 named "&6Diamentowy miecz" with lore "|| &7» Diamentowy miecz z zestawu &6&lsponsora"
                give player diamond helmet of protection 3, unbreaking 2 named "&6Diamentowy helm" with lore "|| &7» Diamentowy helm z zestawu &6&lsponsora"
                give player diamond chestplate of protection 3, unbreaking 2 named "&6Diamentowa klata" with lore "|| &7» Diamentowa klata z zestawu &6&lsponsora"
                give player diamond leggings of protection 3, unbreaking 2 named "&6Diamentowe spodnie" with lore "|| &7» Diamentowe spodnie z zestawu &6&lsponsora"
                give player diamond boots of protection 3, unbreaking 2 named "&6Diamentowe buty" with lore "|| &7» Diamentowe buty z zestawu &6&lsponsora"
                give player 5 enchanted golden apple named "&6Kox" with lore "|| &7» Kox z zestawu &6&lsponsor"
                set {kitsponsor.%player%} to false
                wait 18000 seconds
                set {kitsponsor.%player%} to true
            else:
                send "&7» &6Musisz odczekac &75h &6zeby odebrac znowu."
        else:
            send player title "&7Nie masz dostepu! &6[kitsponsor.*]" for 5 seconds

 

Edytowane przez LjayPL789
bludis

Wstawiam w code.

Notatka dodana przez bludis

Odnośnik do komentarza
https://skript.pl/temat/37601-problem-z-skryptem/#findComment-238917
Udostępnij na innych stronach

  • 0
11 minut temu, NeQ34 napisał:

Myślę, że o to Ci chodziło:

command /kit3:
    trigger:
        if player has permission "kitsponsor.*":
            if {kitsponsor.%player%} is true:
                play raw sound "random.pop" at player with pitch 1 volume 5
                send player title "&7Odebrales &6&lzestaw sponsora" for 5 seconds
                give player diamond pickaxe of efficiency 5, unbreaking 3, fortune 3 named "&6Diamentowy kilof" with lore "|| &7» Diamentowy kilof z zestawu &6&lsponsora"
                give player 12 golden apple named "&6Zlote jablko" with lore "|| &7» Zlote jablko z zestawu &6&lsponsor"
                give player diamond sword of sharpness 3, unbreaking 2, fire aspect 1 named "&6Diamentowy miecz" with lore "|| &7» Diamentowy miecz z zestawu &6&lsponsora"
                give player diamond helmet of protection 3, unbreaking 2 named "&6Diamentowy helm" with lore "|| &7» Diamentowy helm z zestawu &6&lsponsora"
                give player diamond chestplate of protection 3, unbreaking 2 named "&6Diamentowa klata" with lore "|| &7» Diamentowa klata z zestawu &6&lsponsora"
                give player diamond leggings of protection 3, unbreaking 2 named "&6Diamentowe spodnie" with lore "|| &7» Diamentowe spodnie z zestawu &6&lsponsora"
                give player diamond boots of protection 3, unbreaking 2 named "&6Diamentowe buty" with lore "|| &7» Diamentowe buty z zestawu &6&lsponsora"
                give player 5 enchanted golden apple named "&6Kox" with lore "|| &7» Kox z zestawu &6&lsponsor"
                set {kitsponsor.%player%} to false
                wait 18000 seconds
                set {kitsponsor.%player%} to true
            else:
                send "&7» &6Musisz odczekac &75h &6zeby odebrac znowu."
        else:
            send player title "&7Nie masz dostepu! &6[kitsponsor.*]" for 5 seconds

tylko jak to daje, to pisze ze nie moge miec podobno else po else

Odnośnik do komentarza
https://skript.pl/temat/37601-problem-z-skryptem/#findComment-238919
Udostępnij na innych stronach

  • 0

on load:
    createCooldown("kitsponsor", 5 hours)

command /kit3 [<text>]:
    trigger:
        if player has permission "kitsponsor.*":
            if getCooldown(player, "kitsponsor"):
                play raw sound "random.pop" at player with pitch 1 volume 5
                send player title "&7Odebrales &6&lzestaw sponsora" for 5 seconds
                give player diamond pickaxe of efficiency 5, unbreaking 3, fortune 3 named "&6Diamentowy kilof" with lore "|| &7» Diamentowy kilof z zestawu &6&lsponsora"
                give player 12 golden apple named "&6Zlote jablko" with lore "|| &7» Zlote jablko z zestawu &6&lsponsor"
                give player diamond sword of sharpness 3, unbreaking 2, fire aspect 1 named "&6Diamentowy miecz" with lore "|| &7» Diamentowy miecz z zestawu &6&lsponsora"
                give player diamond helmet of protection 3, unbreaking 2 named "&6Diamentowy helm" with lore "|| &7» Diamentowy helm z zestawu &6&lsponsora"
                give player diamond chestplate of protection 3, unbreaking 2 named "&6Diamentowa klata" with lore "|| &7» Diamentowa klata z zestawu &6&lsponsora"
                give player diamond leggings of protection 3, unbreaking 2 named "&6Diamentowe spodnie" with lore "|| &7» Diamentowe spodnie z zestawu &6&lsponsora"
                give player diamond boots of protection 3, unbreaking 2 named "&6Diamentowe buty" with lore "|| &7» Diamentowe buty z zestawu &6&lsponsora"
                give player 5 enchanted golden apple named "&6Kox" with lore "|| &7» Kox z zestawu &6&lsponsor"
                setCooldown(player, "kitsponsor")
        else:
            send "&7» &6Musisz odczekac &7%getCooldownTime(player, ""kitsponsor"")%"

Wymaga AxCooldown.

Odnośnik do komentarza
https://skript.pl/temat/37601-problem-z-skryptem/#findComment-238964
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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