Aller au contenu
  • 0

Probleme d'arg pour mon skript


Question

Posté(e)

Bonjour a tous, j'ai un ptit problème, j'ai fais un skript de warn, je fais la commande sa fonctionne, sauf que quand je passe dans le gui ya un probleme, sa enleve une lettre de skript.

 

Je vais vous montrer plusieur partie de mon skript car au depart il faut acceder a un gui pour warn le joueur voulu

 

Pour les joueurs online:

 

        if arg 1 is "playerco":
           if player has permission "{@perm}":
               set {_slot} to 0
               wait 2 ticks
               open chest with 6 rows named "&9Joueurs connectés" to player
               set {_slot} to 0
               loop 54 times:
                   format slot {_spl} of player with {@objt} named " " to be unstealable
                   add 1 to {_spl}
               loop all players:
                   set {_head} to "%loop-player%" parsed as offline player
                   format gui slot {_slot} of player with skull of {_head} named "&6%{_head}%" to run player command "/panel look %loop-player%"               
                   add 1 to {_slot}

Pour le gui des warn:

 

        if arg 1 is "gui":
           if arg 2 is a player:
               if player has permission "{@perm}":
                   open chest with 3 rows named "&cWarn &6%arg 1%" to player
                   wait 1 ticks
                   format slot 0 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Insultes" to close then run [make player execute command "/warn %arg 2% Insultes"]
                   format slot 1 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Spam" to close then run [make player execute command "/warn %arg 2% Spam"]
                   format slot 2 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Demande de don" to close then run [make player execute command "/warn %arg 2% Demande de dons"]
                   format slot 3 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Xray" to close then run [make player execute command "/warn %arg 2% XRAY"]
                   format slot 4 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Macro" to close then run [make player execute command "/warn %arg 2% Macro"]
                   format slot 5 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3JitterClick / Butterfly" to close then run [make player execute command "/warn %arg 2% JitterClick / ButterFly"]
                   format slot 6 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Spam ticket" to close then run [make player execute command "/warn %arg 2% Spam ticket"]
                   format slot 7 of player with paper named "&6Warn le joueur pour la raison:" with lore "&3Arnaque" to close then run [make player execute command "/warn %arg 2% Arnaque"]

 

Et enfin le warn:

 

        if arg 1 is a player:
           if arg 2 is set:
               if player has permission "{@perm}":
                   add arg 2 to {warn.%arg 1%::*}
                   send "&cVous venez de warn le joueur &3%arg 1% pour la raison &6%arg 2%"
                   broadcast "{@serv} &aLe joueur &6%arg 1%&a vient d'être averti par &4%executor% &a pour la raison &6%arg 2%"
                   send "{@prefix} &6Vous venez d'être warn par &c%executor% &6pour la raison &3%arg 2%" to arg 1

 

Voilà merci pour votre aide :)

2 réponses à cette question

Messages recommandés

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