Skocz do zawartości
  • 0

hej pomozecie?


ssa222

Pytanie

Dlaczego nie pisze ze Gracz uzył  ten vouncher? ja chcem zeby pisało ze Gracz Uzył Vouncher na vip ale na ekranie

options:
        voucher-name: "&d&lVoucher &5&lna &e&lVipa!"
        voucher: Paper of unbreaking 5
command /voucher:
    permission: voucher.admin
    permission message: &2Nie masz uprawnień!
    trigger:
        give 1 of {@voucher} named {@voucher-name} to the player
on mine of stone:
    chance of 0.001%:
        drop {@voucher} named {@voucher-name}
        send "&dGracz &e%player% &awydropił &dVoucher &ana &eVipa!"
on right click:
    if player's tool is {@voucher} named {@voucher-name}:
        execute console command "lp user %player% parent addtemp vip 7d"
        broadcast &d"%player% &eUżył &dVoucher &ana &eVipa!"
        send "&e&lOd teraz masz vipa na 7dni!"
        remove 1 of {@voucher} named {@voucher-name} from the player

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/49468-hej-pomozecie/
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
8 godzin temu, ssa222 napisał:

Dlaczego nie pisze ze Gracz uzył  ten vouncher? ja chcem zeby pisało ze Gracz Uzył Vouncher na vip ale na ekranie

options:
        voucher-name: "&d&lVoucher &5&lna &e&lVipa!"
        voucher: Paper of unbreaking 5
command /voucher:
    permission: voucher.admin
    permission message: &2Nie masz uprawnień!
    trigger:
        give 1 of {@voucher} named {@voucher-name} to the player
on mine of stone:
    chance of 0.001%:
        drop {@voucher} named {@voucher-name}
        send "&dGracz &e%player% &awydropił &dVoucher &ana &eVipa!"
on right click:
    if player's tool is {@voucher} named {@voucher-name}:
        execute console command "lp user %player% parent addtemp vip 7d"
        broadcast &d"%player% &eUżył &dVoucher &ana &eVipa!"
        send "&e&lOd teraz masz vipa na 7dni!"
        remove 1 of {@voucher} named {@voucher-name} from the player

Zamiast brodcast daj send "" to all players

 

Sorry ze w osobnym

A broadcast ci nie działa pewnie dlatego ze masz kolor poza "". Daj to &d przed "" w ""

Glicz

Łączę posty.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/49468-hej-pomozecie/#findComment-306890
Udostępnij na innych stronach

  • 0
17 minut temu, Skiuel napisał:

Zamiast brodcast daj send "" to all players

co to za różnica? w tym błędzie chodzi o to, że jakimś cudem &d jest przed cudzysłowiem (przed stringiem), powinno być za nim

Edytowane przez 3meraldK
Odnośnik do komentarza
https://skript.pl/temat/49468-hej-pomozecie/#findComment-306892
Udostępnij na innych stronach

  • 0
5 minut temu, Skiuel napisał:

Przecież to napisałem? 

no dobra ale broadcast to jest send, tylko że defaultowo do każdego gracza plus do konsoli, więc broadcast można, nie trzeba send

Odnośnik do komentarza
https://skript.pl/temat/49468-hej-pomozecie/#findComment-306903
Udostępnij na innych stronach

  • 0
options:
        voucher-name: "&d&lVoucher &5&lna &e&lVipa!"
        voucher: Paper of unbreaking 5
command /voucher:
    permission: voucher.admin
    permission message: &2Nie masz uprawnień!
    trigger:
        give 1 of {@voucher} named {@voucher-name} to the player
on mine of stone:
    chance of 0.001%:
        drop {@voucher} named {@voucher-name}
        send "&dGracz &e%player% &awydropił &dVoucher &ana &eVipa!"
on right click:
    if player's tool is {@voucher} named {@voucher-name}:
        execute console command "lp user %player% parent addtemp vip 7d"
        send "&d%player% &eUżył &dVoucher &ana &eVipa!" to all players
        send action bar "&d%player% &eUżył &dVoucher &ana &eVipa!" to all players
        send "&e&lOd teraz masz vipa na 7dni!"
        remove 1 of {@voucher} named {@voucher-name} from the player

@ssa222Może być?

Odnośnik do komentarza
https://skript.pl/temat/49468-hej-pomozecie/#findComment-306953
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ę...