Skocz do zawartości
  • 0

Problem z skryptem.


wiktor_k

Pytanie

Witam, mam problem z Skryptem. Jeśli mam OP lub Gwiazdkę to mi spami na chacie tym powiadomieniem które jest widoczne w Kod Skryptu. Mam pytanie bo nie siedzę tak w Skryptach. Czy da się opóźnić te powiadomienie jak ktoś kliknie PPM to żeby mu nie za spamiło chatu.

Kod Skryptu:

on right click:
    if player doesn't have permission "voucher.vip":
        if player is holding paper named "&f&lVoucher &8[&6VIP&8]":
            make console execute command "pex user %player% group set vip"
            make console execute command "nick %player% &6%player%"
            remove 1 paper named "&f&lVoucher &8[&6VIP&8]" from the player
    else:
        send "&4Blad: &cNie mozesz uzyc Vouchera poniewaz posiadasz już Range VIP/SVIP."
        stop
        
    if player doesn't have permission "voucher.svip":
        if player is holding paper named "&f&lVoucher &8[&6VIP&8]":
            make console execute command "pex user %player% group set svip"
            make console execute command "nick %player% &3%player%"
            remove 1 paper named "&f&lVoucher &8[&3SVIP&8]" from the player
    else:
        send "&4Blad: &cNie mozesz uzyc Vouchera poniewaz posiadasz już Range SVIP."
        stop
    
    if player is holding paper named "&f&lVoucher &a$500k":
        make console execute command "eco give %player% 500000"
        remove 1 paper named "&f&lVoucher &a$500k" from the player
        stop

 

Edytowane przez LjayPL789
bludis

Wstawiam w code.

Notatka dodana przez bludis

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

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Dodaj sobie jeszcze jeden warunek przed tym sprawdzaniem uprawnienia czy gracz nie jest opem i czy nie ma gwiazdki (*) lub gwiazdki kropki gwiazdki (*.*).


Mam nadzieje, że pomogłem.

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

  • 0

on right click:
    if player is holding paper named "&f&lVoucher &8[&6VIP&8]":
        if player doesn't have permission "voucher.vip":
            make console execute command "pex user %player% group set vip"
            make console execute command "nick %player% &6%player%"
            remove 1 paper named "&f&lVoucher &8[&6VIP&8]" from the player
        else:
            send "&4Blad: &cNie mozesz uzyc Vouchera poniewaz posiadasz już Range VIP/SVIP."
        stop
     
    if player is holding paper named "&f&lVoucher &8[&3SVIP&8]": 
        if player doesn't have permission "voucher.svip":
            make console execute command "pex user %player% group set svip"
            make console execute command "nick %player% &3%player%"
            remove 1 paper named "&f&lVoucher &8[&3SVIP&8]" from the player
        else:
            send "&4Blad: &cNie mozesz uzyc Vouchera poniewaz posiadasz już Range SVIP."
        stop
        
    if player is holding paper named "&f&lVoucher &a$500k":
        make console execute command "eco give %player% 500000"
        remove 1 paper named "&f&lVoucher &a$500k" from the player
        stop

Odnośnik do komentarza
https://skript.pl/temat/30773-problem-z-skryptem/#findComment-200852
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ę...