Aller au contenu
  • 0

Loot désactivé en mode staff ?


Question

Posté(e)

Salut à tous je souhaite que si une variable est true ba que lorsque le joueur meurt il ne loot rien

mon skript:

command /staff:
   permission: {@perm}
   permission message: {@msgperm}
   trigger:
       if {staff.mode.%player%} isn't set:
           wait 2 ticks
           set {staff.mode.%player%} to true
           send "&c(&4!&c) &3Tu est maintenant en staff mode !"
           set {staffinv.%player%} to player's serialized inventory
           set {staff.%player%::casque} to helmet of player
           set {staff.%player%::plastron} to chestplate of player
           set {staff.%player%::pantalon} to leggings of player
           set {staff.%player%::bottes} to boots of player             
           wait 2 ticks
           clear player's inventory
           make player execute command "/vanish on"
           set slot 0 of player to compass named "&6TP random"               
           set slot 1 of player to wooden sword of knockback 10 named "&6Test-AntiKB"
           set slot 2 of player to stick named "&cKill"
           set slot 3 of player to diamond named "&3Kick"
           set slot 4 of player to blaze rod named "&bFreeze"
           set slot 5 of player to light green dye named "&6Vanish &f[&aON&f]"
           set slot 6 of player to book named "&6Panel de Modération"
           set slot 8 of player to redstone named "&cQuitter"   
       else if {staff.mode.%player%} is true:
           wait 2 ticks
           clear player's inventory       
           restore inventory of player from {staffinv.%player%}
           set helmet of player to {staff.%player%::casque}
           set chestplate of player to {staff.%player%::plastron}
           set leggings of player to {staff.%player%::pantalon}
           set boots of player to {staff.%player%::bottes}           
           delete {staff.mode.%player%}
           wait 2 ticks
           make player execute command "vanish off"
           send "&c(&4!&c) &3Tu as quitter le staff mode !" to player        

la variable:

{staff.mode.%player%}

 

Cdt

MGamer91

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.