Aller au contenu
  • 0

Manuadd un joueur


Question

Posté(e)

Bonjour/Bonsoir,

 

 

J'ai créer un shop dans un gui et je propose des grades/kits, seul bémole :

 

Si je veux manuadd, il faut ciblé un joueur sauf que j'utilise le manuadd avec un "console command"

Comment faire ?

 

Mon code :

 

        else:
           if arg 1 is "chevalier":
               if {coins.%UUID of player%} is greater than {@prixroi}:
               make console execute command "/manuadd [je ne sais pas] chevalier"

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Ca depend de ta commande, du reste de ton script, si on doit utiliser %player% ou %arg 1%, pour t'apprendre aà utiliser un plugin ce ne sera pas ici, cherche sur Google ou la doc du plugin ou change de plugin s'il est trop compliqué

  • 0
Posté(e)

command /buy [<text>]:
   trigger:
       if arg 1 is not set:
           open chest with 3 rows named "         &4Shop Rangs & Kits" to player
           format slot 0 of player with red stained glass named " " to be unstealable
           format slot 1 of player with blue stained glass named " " to be unstealable
           format slot 2 of player with blue stained glass named " " to be unstealable
           format slot 3 of player with red stained glass named " " to be unstealable
           format slot 4 of player with red stained glass named " " to be unstealable
           format slot 5 of player with red stained glass named " " to be unstealable
           format slot 6 of player with blue stained glass named " " to be unstealable
           format slot 7 of player with blue stained glass named " " to be unstealable
           format slot 8 of player with red stained glass named " " to be unstealable
           format slot 9 of player with blue stained glass named " " to be unstealable
           format slot 10 of player with red stained glass named " " to be unstealable
           format slot 11 of player with diamond chestplate named "&6Rangs" to close then run [make player execute command "/rangs"]
           format slot 12 of player with red stained glass named " " to be unstealable
           format slot 13 of player with sign item named "&5Infos" to close then run "infos"
           format slot 14 of player with red stained glass named " " to be unstealable
           format slot 15 of player with diamond sword named "&6Kits" to close then run "kits"
           format slot 16 of player with red stained glass named " " to be unstealable
           format slot 17 of player with blue stained glass named " " to be unstealable
           format slot 18 of player with red stained glass named " " to be unstealable
           format slot 19 of player with blue stained glass named " " to be unstealable
           format slot 20 of player with blue stained glass named " " to be unstealable
           format slot 21 of player with red stained glass named " " to be unstealable
           format slot 22 of player with red stained glass named " " to be unstealable
           format slot 23 of player with red stained glass named " " to be unstealable
           format slot 24 of player with blue stained glass named " " to be unstealable
           format slot 25 of player with blue stained glass named " " to be unstealable
           format slot 26 of player with red stained glass named " " to be unstealable
       else:
           if arg 1 is "chevalier":
               if {coins.%UUID of player%} is greater than {@prixroi}:
               make console execute command "/manuadd [je ne sais pas] chevalier"

 

Quand le joueur clique sur un plastron en cuir dans le gui, ça éxécute le else

  • 0
Posté(e)
command /buy [<text>]:
   trigger:
       if arg 1 is not set:
           open chest with 3 rows named "         &4Shop Rangs & Kits" to player
           format slot 0 of player with red stained glass named " " to be unstealable
           format slot 1 of player with blue stained glass named " " to be unstealable
           format slot 2 of player with blue stained glass named " " to be unstealable
           format slot 3 of player with red stained glass named " " to be unstealable
           format slot 4 of player with red stained glass named " " to be unstealable
           format slot 5 of player with red stained glass named " " to be unstealable
           format slot 6 of player with blue stained glass named " " to be unstealable
           format slot 7 of player with blue stained glass named " " to be unstealable
           format slot 8 of player with red stained glass named " " to be unstealable
           format slot 9 of player with blue stained glass named " " to be unstealable
           format slot 10 of player with red stained glass named " " to be unstealable
           format slot 11 of player with diamond chestplate named "&6Rangs" to close then run [make player execute command "/rangs"]
           format slot 12 of player with red stained glass named " " to be unstealable
           format slot 13 of player with sign item named "&5Infos" to close then run "infos"
           format slot 14 of player with red stained glass named " " to be unstealable
           format slot 15 of player with diamond sword named "&6Kits" to close then run "kits"
           format slot 16 of player with red stained glass named " " to be unstealable
           format slot 17 of player with blue stained glass named " " to be unstealable
           format slot 18 of player with red stained glass named " " to be unstealable
           format slot 19 of player with blue stained glass named " " to be unstealable
           format slot 20 of player with blue stained glass named " " to be unstealable
           format slot 21 of player with red stained glass named " " to be unstealable
           format slot 22 of player with red stained glass named " " to be unstealable
           format slot 23 of player with red stained glass named " " to be unstealable
           format slot 24 of player with blue stained glass named " " to be unstealable
           format slot 25 of player with blue stained glass named " " to be unstealable
           format slot 26 of player with red stained glass named " " to be unstealable
       else:
           if arg 1 is "chevalier":
               if {coins.%UUID of player%} is greater than {@prixroi}:
               make console execute command "/manuadd [je ne sais pas] chevalier"

 

Quand le joueur clique sur un plastron en cuir dans le gui, ça éxécute le else

 

Pourrais tu envoyer tout le code stp ? Cela serait utile pour mieux t'aider

  • 0
Posté(e)
options:
   nocoins: &4[&6ERREUR&4] &6Tu n'as pas asser de LightCoins
   hero: &6[&aShop&6]&a Tu as acheté le grade : &bChevalier
   chevalier: 6[&aShop&6]&a Tu as acheté le grade : &3Héro
   divin: 6[&aShop&6]&a Tu as acheté le grade : &aRoi
   roi: 6[&aShop&6]&a Tu as acheté le grade : &6Divinité

   prixchevalier: 999999
   prixhero: 999999
   prixroi: 999999
   prixdivinite: 999999


command /buy [<text>]:
   trigger:
       if arg 1 is not set:
           open chest with 3 rows named "         &4Shop Rangs & Kits" to player
           format slot 0 of player with red stained glass named " " to be unstealable
           format slot 1 of player with blue stained glass named " " to be unstealable
           format slot 2 of player with blue stained glass named " " to be unstealable
           format slot 3 of player with red stained glass named " " to be unstealable
           format slot 4 of player with red stained glass named " " to be unstealable
           format slot 5 of player with red stained glass named " " to be unstealable
           format slot 6 of player with blue stained glass named " " to be unstealable
           format slot 7 of player with blue stained glass named " " to be unstealable
           format slot 8 of player with red stained glass named " " to be unstealable
           format slot 9 of player with blue stained glass named " " to be unstealable
           format slot 10 of player with red stained glass named " " to be unstealable
           format slot 11 of player with diamond chestplate named "&6Rangs" to close then run [make player execute command "/rangs"]
           format slot 12 of player with red stained glass named " " to be unstealable
           format slot 13 of player with sign item named "&5Infos" to close then run "infos"
           format slot 14 of player with red stained glass named " " to be unstealable
           format slot 15 of player with diamond sword named "&6Kits" to close then run "kits"
           format slot 16 of player with red stained glass named " " to be unstealable
           format slot 17 of player with blue stained glass named " " to be unstealable
           format slot 18 of player with red stained glass named " " to be unstealable
           format slot 19 of player with blue stained glass named " " to be unstealable
           format slot 20 of player with blue stained glass named " " to be unstealable
           format slot 21 of player with red stained glass named " " to be unstealable
           format slot 22 of player with red stained glass named " " to be unstealable
           format slot 23 of player with red stained glass named " " to be unstealable
           format slot 24 of player with blue stained glass named " " to be unstealable
           format slot 25 of player with blue stained glass named " " to be unstealable
           format slot 26 of player with red stained glass named " " to be unstealable
       else:
           if arg 1 is "chevalier":
               if {coins.%UUID of player%} is greater than {@prixroi}:
               make console execute command "/manuadd [je ne sais pas] chevalier"




command /infos:
   trigger:
       send "&6<----------------------------->"
       send " &3Tu peux acheter des kits et "
       send " &3des rangs pour gagner en"
       send " &3puissance et devenir le plus"
       send " &3fort, pour cela tu dois payer"
       send " &3avec des coins que tu recevras"
       send " &3grâce aux ventesd'objets"
       send "&6<----------------------------->"

command /kits:
   trigger:
       close player's inventory
       wait 2 ticks
       open chest with 3 rows named "         &4Shop Rangs & Kits" to player
       format slot 0 of player with red stained glass named " " to be unstealable
       format slot 1 of player with blue stained glass named " " to be unstealable
       format slot 2 of player with blue stained glass named " " to be unstealable
       format slot 3 of player with red stained glass named " " to be unstealable
       format slot 4 of player with red stained glass named " " to be unstealable
       format slot 5 of player with red stained glass named " " to be unstealable
       format slot 6 of player with blue stained glass named " " to be unstealable
       format slot 7 of player with blue stained glass named " " to be unstealable
       format slot 8 of player with red stained glass named " " to be unstealable
       format slot 9 of player with blue stained glass named " " to be unstealable   
       format slot 10 of player with splash potion of healing 2 named "&eKit Alchimiste" to be unstealable           
       format slot 11 of player with red stained glass named " " to be unstealable       
       format slot 12 of player with ender pearl named "&eKit Explorateur" to be unstealable       
       format slot 13 of player with red stained glass named " " to be unstealable       
       format slot 14 of player with xp bottle named "&eKit Enchanteur" to be unstealable       
       format slot 15 of player with red stained glass named "&6Kits" to be unstealable           
       format slot 16 of player with tnt named "&eKit Pillage" to be unstealable       
       format slot 17 of player with blue stained glass named " " to be unstealable
       format slot 18 of player with red stained glass named " " to be unstealable
       format slot 19 of player with blue stained glass named " " to be unstealable
       format slot 20 of player with blue stained glass named " " to be unstealable
       format slot 21 of player with red stained glass named " " to be unstealable
       format slot 22 of player with red stained glass named " " to be unstealable
       format slot 23 of player with red stained glass named " " to be unstealable
       format slot 24 of player with blue stained glass named " " to be unstealable
       format slot 25 of player with blue stained glass named " " to be unstealable
       format slot 26 of player with red stained glass named " " to be unstealable
command /rangs:
   trigger:
       close player's inventory
       wait 2 ticks
       open chest with 3 rows named "         &4Shop Rangs & Kits" to player
       format slot 0 of player with red stained glass named " " to be unstealable
       format slot 1 of player with blue stained glass named " " to be unstealable
       format slot 2 of player with blue stained glass named " " to be unstealable
       format slot 3 of player with red stained glass named " " to be unstealable
       format slot 4 of player with red stained glass named " " to be unstealable
       format slot 5 of player with red stained glass named " " to be unstealable
       format slot 6 of player with blue stained glass named " " to be unstealable
       format slot 7 of player with blue stained glass named " " to be unstealable
       format slot 8 of player with red stained glass named " " to be unstealable
       format slot 9 of player with blue stained glass named " " to be unstealable   
       format slot 10 of player with leather chestplate named "&bChevalier" to be unstealable           
       format slot 11 of player with red stained glass named " " to be unstealable       
       format slot 12 of player with gold chestplate named "&3Héro" to be unstealable       
       format slot 13 of player with red stained glass named " " to be unstealable       
       format slot 14 of player with iron chestplate named "&aRoi" to be unstealable       
       format slot 15 of player with red stained glass named "&6Kits" to be unstealable           
       format slot 16 of player with diamond chestplate named "&6Divinité" to be unstealable       
       format slot 17 of player with blue stained glass named " " to be unstealable
       format slot 18 of player with red stained glass named " " to be unstealable
       format slot 19 of player with blue stained glass named " " to be unstealable
       format slot 20 of player with blue stained glass named " " to be unstealable
       format slot 21 of player with red stained glass named " " to be unstealable
       format slot 22 of player with red stained glass named " " to be unstealable
       format slot 23 of player with red stained glass named " " to be unstealable
       format slot 24 of player with blue stained glass named " " to be unstealable
       format slot 25 of player with blue stained glass named " " to be unstealable
       format slot 26 of player with red stained glass named " " to be unstealable

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