Aller au contenu
  • 0

Aide Chat manager


Question

Posté(e)

  • Hello voici le skript
    #Le cores // Les commandes .
    command /chat <text>:
       permission: {@permchange}
       permission message: &7[&cErreur&7] &cTu n'as pas la permission de changer ton mode de chat .
       trigger:
           if arg 1 is "help":
    
                               #----Help chat change---#
    
    
               send "&7-==- --- -==- &aTchat Change &7-==- --- -==-"
               send ""
               send "&7-> &a/chat global &f: se mettre en mode Tchatglobal"
               send "&7-> &a/chat staff &f: se mettre en mode TchatStaff "
               stop
               stop
    
                               #----Help Clear---#
    
    
           if arg 1 is "staff":
           if player have permission "{@staffperm}":
           set {tchatmode.%player%} to "admin"
           send "&aTon mode de Tchat a été changé en : staff"
           stop
           stop
           if arg 1 is "global":
           if player have permission "{@permglobal}":
           set {tchatmode.%player%} to "global"
           send "&aTon mode de Tchat a été changé en : Global"
           stop
           stop
           if arg 1 is "clear":
           if player have permission "essentials.chat.clear":
           loop 200 times:
           broadcast " "
           wait 1 tick
           broadcast "&a&oLe chat a été clear par &f&o%player%"
           stop
           stop


 

 

Quand je fais /chat help

ca me mais la list des commande

mais quand je fait /chat (Nimportequoi exemple clear ou global)

ca me mais en mode chat de staff

18 réponses à cette question

Messages recommandés

  • 0
Posté(e)

les tab oui si tu veux je te montre le code :

command /box <text=help>:
   trigger:
       wait 3 tick


       if arg 1 is not set:
       stop

           #Help pvp#

       if arg 1 is "help":
       send "&7-==- --- -==- &aPvp Box &7-==- --- -==-"
       send ""
       send "&7-> &a/pvpbox gladiateur   <Pour choisir le kit Gladiateur>"
       send "&7-> &a/pvpbox leave <Pour leave le pvpbox>"
       send "&7-> &a/pvpbox help  <pour avoir la list des commandes>"
       send ""
       send "&7-==- --- -==- &aPvp Box &7-==- --- -==-"
       stop
       wait 3 tick

            #Kit Gladiateur#

       if arg 1 is "gladiateur":
       clear the player's inventory
       wait 2 tick
       heal the player
       wait 4 tick
       equip player with iron helmet
       equip player with diamond chestplate
       equip player with diamond chestplate
       equip player with iron boots
       give a diamond sword to the player
       send "&6Teleportation en cours ... "
       wait 1 seconds
       teleport the player to {pvpboxtp}
       stop
       wait 3 tick
           #Leave#

       if arg 1 is "leave":
       clear the player's inventory
       wait 2 tick
       heal the player
       wait 4 tick
       teleport the player to {pvpboxleave}
       stop
       wait 3 tick

               #spawn Join#

       if arg 1 is "join":
       set {pvpboxtp} to location of player
       send "&aleave du pvpbox Fait ! "
       stop
       wait 3 tick

               #spawn leave#       

       if arg 1 is "sleave":
       set {pvpboxleave} to location of player
       send "&aleave du pvpbox Fait ! "
       stop
       wait 3 tick

  • 0
Posté(e)

Essaie avec ça !

 

command /box [<text>]:
   trigger:
       wait 3 ticks
       if arg 1 is not set:
           send "&4&lErreur: &aUtilises /box &f&lhelp &a pour plus d'informations" to player

           #Help pvp#

       if arg 1 is "help":
           send "&7-==- --- -==- &aPvp Box &7-==- --- -==-" to player
           send ""
           send "&7-> &a/pvpbox gladiateur   <Pour choisir le kit Gladiateur>" to player
           send "&7-> &a/pvpbox leave <Pour leave le pvpbox>" to player
           send "&7-> &a/pvpbox help  <pour avoir la list des commandes>" to player
           send ""
           send "&7-==- --- -==- &aPvp Box &7-==- --- -==-" to player
           wait 3 ticks
           stop

           #Kit Gladiateur#

       if arg 1 is "gladiateur":
           clear the player's inventory
           wait 2 tick
           heal the player
           wait 4 tick
           equip player with iron helmet
           equip player with diamond chestplate
           equip player with diamond chestplate
           equip player with iron boots
           give a diamond sword to the player
           send "&6Teleportation en cours ... " to player
           wait 1 seconds
           teleport the player to {pvpboxtp}
           wait 3 ticks
           stop
           #Leave#

       if arg 1 is "leave":
           clear the player's inventory
           wait 2 tick
           heal the player
           wait 4 tick
           teleport the player to {pvpboxleave}
           wait 3 tick
           stop

               #spawn Join#

       if arg 1 is "join":
           set {pvpboxtp} to location of player
           send "&aJoin du pvpbox Fait ! " to player
           wait 3 ticks
           stop

               #spawn leave#     

       if arg 1 is "leave":
           set {pvpboxleave} to location of player
           send "&aleave du pvpbox Fait ! " to player
           wait 3 ticks
           stop

 

Ps: j'ai mis des tabs non des espaces

  • 0
Posté(e)

command /box <text=help>:

Je trouvais ça assez bizarre donc j'ai remplacé l'argument par [<text>] ( Les crochets indiquent que l'argument text ne peut faire qu'un seul mot )

De plus, il manquais toutes les tabulations après les conditons ! ( A chaque fois que tu met " : " Tu rajoutes 4 espaces ou 1 tabulation à la ligne suivante )

 

j'ai aussi inversé l'ordre des:

 

            stop
           wait 3 ticks

 

Car c'est un peu illogique d'indiquer comme quoi le skript et terminer et le refaire attendre 3 ticks ( Oublies pas le s )

 

En tous cas ce fût avec plaisir !

Pense à laisser un petit like !

 

Cdt

  • J'aime 1
  • 0
Posté(e)

Merci pour le box mais le chat ne marche toujours pas je tape /chat (n'importe quoi) il me le mais en staff

 

Code:

ptions:
   permchange: permchange.use
   adminperm: adminperm.use
   modperm: modperm.use
   permglobal: globalperm.use
   staffperm: staffperm.use


#Le cores // Les commandes .
command /chat [<text>]:
   permission: {@permchange}
   permission message: &7[&cErreur&7] &cTu n'as pas la permission de changer ton mode de chat .
   trigger:
       if arg 1 is "help":

                           #----Help chat change---#


           send "&7-==- --- -==- &aTchat Change &7-==- --- -==-"
           send ""
           send "&7-> &a/chat global &f: se mettre en mode Tchatglobal"
           send "&7-> &a/chat staff &f: se mettre en mode TchatStaff "
           stop

                           #----Help Clear---#


       if arg 1 is "staff":
       if player have permission "{@staffperm}":
           set {tchatmode.%player%} to "admin"
           send "&aTon mode de Tchat a été changé en : staff"
           stop
       if arg 1 is "global":
       if player have permission "{@permglobal}":
           set {tchatmode.%player%} to "global"
           send "&aTon mode de Tchat a été changé en : Global"
           stop
       if arg 1 is "clear":
       if player have permission "essentials.chat.clear":
           loop 200 times:
           broadcast " "
           wait 1 tick
           broadcast "&a&oLe chat a été clear par &f&o%player%"
           stop




#En Tchat --
on chat:
   if player have permission "{@staffperm}":
       if {tchatmode.%player%} is "admin":
           cancel event
           loop all players:
               if loop-players have permission "{@staffperm}":
                   send "&c[staff] M :%world% &4%player% &f: %message%" to (loop-players)               

       if player have permission "{@adminperm}":
       if {tchatmode.%player%} is "global":
       stop       

 

A oui et le /chat help marche par contre x)

  • 0
Posté(e)

tu as marqué ption au lieu de option le pb vien de la :o

ptions:

permchange: permchange.use

adminperm: adminperm.use

modperm: modperm.use

permglobal: globalperm.use

staffperm: staffperm.use

×
×
  • 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.