Aller au contenu
  • 0

Question

Posté(e)

Bonjour, Bonsoir !

 

Je souhaiterai un skript qui permet au staff (perm: chat.staff) de faire "@%msg%" pour parler entre eux j'ai commencer un skript mais marche pas :/

 

Mon skript:

 

#!==================================================!#
#!                    Chat Staff                    !#
#!==================================================!#
on chat:
   if first character of message is "@":
       cancel event
       if player is "LeCraftDeOuf":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[&aFondateur] &c%player% &8➜&c %message%" to loop-player


       if player is "myrelion77":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[&aChef-Modérateur] &c%player% &8➜&c %message%" to loop-value

       if player is "Tiful":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "theraptor53":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "Foxios":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "MaxDETHO":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "gostriderdenfer":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "Atagos":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "hugogamer14":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "EoS_Keegardhard":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "iNeeDCorN": #N'est pas sur du pseado !
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value

       if player is "OmegaFlaash":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[F] &c%player% &8➜&c %message%" to loop-value



       else:
           loop all players:
               replace all "@" with "" in message
               send "%displayname of player%&f: %message% " to loop-value

  • J'aime 1

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
on chat:
   if first character of message is "@":
       cancel event
       if player has permission "chat.staff":
           loop all players:
               if loop-player has permission "chat.staff":
                   replace all "@" with "" in message
                   send "&cSTAFF &2[&aFondateur] &c%player% &8➜&c %message%" to loop-player

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

on chat:
   if first character of message is "@":
       cancel event
       if player has permission "chat.staff":
           loop all players:
               if loop-player has permission "chat.staff":
                   if player has permission "grade.fondateur":
                       send "&cSTAFF &2[&aFondateur] &c%player% &8➜&c %subtext of message from characters 2 to (the length of message)%" to loop-player
                   else if player has permission "grade.builder":
                       send "&cSTAFF &2[&5Builder] &e%player% &8➜&e %subtext of message from characters 2 to (the length of message)%" to loop-player

Tu dois appliquer la permission "grade.<nom du grade>" et rajouter dans le code comme je l'ai fait

J'ai enlever le replace all et j'ai remplacer directement par un subtext of message

  • J'aime 1
  • 0
Posté(e)
on chat:
   if first character of message is "@":
       cancel event
       if player has permission "chat.staff":
           loop all players:
               if loop-player has permission "chat.staff":
                   if player has permission "grade.fondateur":
                       send "&cSTAFF &2[&aFondateur] &c%player% &8➜&c %subtext of message from characters 2 to (the length of message)%" to loop-player
                   else if player has permission "grade.builder":
                       send "&cSTAFF &2[&5Builder] &e%player% &8➜&e %subtext of message from characters 2 to (the length of message)%" to loop-player

Tu dois appliquer la permission "grade.<nom du grade>" et rajouter dans le code comme je l'ai fait

J'ai enlever le replace all et j'ai remplacer directement par un subtext of message

 

Les joueurs OP ont toutes les permissions, donc il ont la permission des builders.

  • J'aime 1
×
×
  • 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.