Aller au contenu
  • 0

Problèmes de TAB


Question

Posté(e)

J'ai des problèmes de TAB ! Possible de m'aider ?

 

on chat:
       set {_w} to difference between {chat.%player%.wait} and now
       if {_w} is less than {chat.waittime} parsed as time span:
               if the player has the permission "chatdelay.admin":
               stop
               cancel event
               send "&c[CD] &fVous devez attendre &c%{chat.waittime}%&fpour parler!" to player
               stop
               if {_w} is more than {chat.waittime} parsed as time span:
               set {chat.%player%.wait} to now
               stop

command /slow [<text>]:
       trigger:
               if the player has the permission "chatdelay.admin":
                       if arg is set:
                               if arg is "off":
                                       set {_t} to "0 seconds"
                                       send "&c[CD] &fSlow mode supprimé" to player
                                       set {chat.waittime} to {_t}
                                       stop
                                       if arg is not "off":
                                       set {_t} to "%arg parsed as number% secondes"
                                       send "&c[CD] &fSlow mode mis sur %{_t}%" to player
                                       set {chat.waittime} to {_t}
                                       stop
on quit:
   delete {chat.%player%.wait}

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Mais il y à des bug de Empty chepaquwa ...

 

Voici le code corrigé ;)

 

on chat:
   set {_w} to difference between {chat.%player%.wait} and now
   if {_w} is less than {chat.waittime} parsed as time span:
       if the player has the permission "chatdelay.admin":
           stop
       else if {_w} is more than {chat.waittime} parsed as time span:
           set {chat.%player%.wait} to now
           stop
       else:
           cancel event
           send "&c[CD] &fVous devez attendre &c%{chat.waittime}%&fpour parler!" to player
           stop

command /slow [<text>]:
   trigger:
       if the player has the permission "chatdelay.admin":
           if arg is set:
               if arg is "off":
                   set {_t} to "0 seconds"
                   send "&c[CD] &fSlow mode supprimé" to player
                   set {chat.waittime} to {_t}
                   stop
               else:
                   set {_t} to "%arg parsed as number% secondes"
                   send "&c[CD] &fSlow mode mis sur %{_t}%" to player
                   set {chat.waittime} to {_t}
                   stop
on quit:
   delete {chat.%player%.wait}

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.