Ir para conteúdo

[Ajuda] Skript - Delay depois de digitar um comando


ChakalMal_

Posts Recomendados

Citar

options:
    
    delay: 5 seconds


on command "ban":
    set {_espera} to difference between {Vdelay.%player%} and now
    if {_espera} is less than {@delay}:
        cancel event
        set {_mensagem} to "%difference between {@delay} and {_espera}%"
        replace all "and" in {_mensagem} with "e"
        replace all "days" in {_mensagem} with "dia"
        replace all "hours" in {_mensagem} with "horas"
        replace all "minutes" in {_mensagem} with "minutos"
        replace all "seconds" in {_mensagem} with "segundos"
        send "&cVocê precisa aguardar &4%{_mensagem}% &cpara usar esse comando novamente"
        stop    
    else:
        set {Vdelay.%player%} to now


on command "tempmute":
    set {_espera} to difference between {Vdelay.%player%} and now
    if {_espera} is less than {@delay}:
        cancel event
        set {_mensagem} to "%difference between {@delay} and {_espera}%"
        replace all "and" in {_mensagem} with "e"
        replace all "days" in {_mensagem} with "dia"
        replace all "hours" in {_mensagem} with "horas"
        replace all "minutes" in {_mensagem} with "minutos"
        replace all "seconds" in {_mensagem} with "segundos"
        send "&cVocê precisa aguardar &4%{_mensagem}% &cpara usar esse comando novamente"
        stop    
    else:
        set {Vdelay.%player%} to now

Já possuía esse script no fórum, porém era para o comando /money.. só alterei o comando

OBS: Testei em servidor local, e está funcionando corretamente. Resolvido? @ChakalMal_

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem está navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...