Aller au contenu

Messages recommandés

Posté(e)

boujour j'ai un problème avec mon skript car j'ai fais un gui qhop mais le problème c'est que meme si on n'as pas d'argent sa give les diamond

command /buy 1 diamond:

permission: op

trigger:

wait 3 ticks

execute console command "give %player% diamond 1"

if player has 200

execute console command "eco take %player% 200"

svp comment faire une condition de se type

Posté(e)

tien

 

command /buy <text>:
   trigger:
       if arg 1 is "diamond":
           if player's balance is less than 200:
               send "&cDésolé mais tu n'as pas assez d'argent ! &aCela coûte 200 $"
           else:
               remove 200 from player's balance
               give 1 diamond to player

  • J'aime 1
Posté(e)
tien

 

command /buy <text>:
   trigger:
       if arg 1 is "diamond":
           if player's balance is less than 200:
               send "&cDésolé mais tu n'as pas assez d'argent ! &aCela coûte 200 $"
           else:
               remove 200 from player's balance
               give 1 diamond to player

Command /buy <number> <text>:

Serai plus exacte, non ?

Cordialement, Davarck.

Posté(e)
Command /buy <number> <text>:

Serai plus exacte, non ?

Cordialement, Davarck.

Merci mais j'utilise un gui est je voudrais que la commande soit utilisable que avec le gui jore les joueurs ne peuvent pas faire la commande

Posté(e)
Envoie nous ton skript de gui ?

command /Diamond:

permission: op

trigger:

wait 3 ticks

open chest with 2 rows named "&cDiamant" to player

format slot 0 of player with a diamond named "&aDiamond: ?$" to run [make player execute command "buy1diamond"]

format slot 1 of player with 2 diamond named "&aDiamond: ?$" to run [make player execute command "buy2diamond"]

format slot 2 of player with 4 diamond named "&aDiamond: ?$" to run [make player execute command "buy4diamond"]

format slot 3 of player with 8 diamond named "&aDiamond: ?$" to run [make player execute command "buy8diamond"]

format slot 4 of player with 16 diamond named "&aDiamond: ?$" to run [make player execute command "buy16diamond"]

format slot 5 of player with 34 diamond named "&aDiamond: ?$" to run [make player execute command "buy34diamond"]

format slot 6 of player with 48 diamond named "&aDiamond: ?$" to run [make player execute command "buy48diamond"]

format slot 7 of player with 56 diamond named "&aDiamond: ?$" to run [make player execute command "buy56diamond"]

format slot 8 of player with 64 diamond named "&aDiamond: ?$" to run [make player execute command "buy64diamond"]

 

command /buy1diamond:

permission: op

trigger:

if player's balance is greater than or equal to 200:

give diamond sword to player

execute console command "eco take %player% 200"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy2diamond:

permission: op

trigger:

if player's balance is greater than or equal to 400:

give diamond sword to player

execute console command "eco take %player% 400"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy4diamond:

permission: op

trigger:

if player's balance is greater than or equal to 800:

give diamond sword to player

execute console command "eco take %player% 800"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy8diamond:

permission: op

trigger:

if player's balance is greater than or equal to 1600:

give diamond sword to player

execute console command "eco take %player% 1600"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy16diamond:

permission: op

trigger:

if player's balance is greater than or equal to 3400:

give diamond sword to player

execute console command "eco take %player% 3400"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy34diamond:

permission: op

trigger:

if player's balance is greater than or equal to 6800:

give diamond sword to player

execute console command "eco take %player% 6800"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy48diamond:

permission: op

trigger:

if player's balance is greater than or equal to 9600:

give diamond sword to player

execute console command "eco take %player% 9600"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy56diamond:

permission: op

trigger:

if player's balance is greater than or equal to 11200:

give diamond sword to player

execute console command "eco take %player% 200"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy64diamond:

permission: op

trigger:

if player's balance is greater than or equal to 12800:

give diamond sword to player

execute console command "eco take %player% 12800"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

Posté(e)

[/command /Diamond:

permission: op

trigger:

wait 1 ticks

open chest with 2 rows named "&cDiamant" to player

wait 1 ticks

format slot 0 of player with a diamond named "&aDiamond: ?$" to run [make player execute command "buy1diamond"]

wait 1 ticks

format slot 1 of player with 2 diamond named "&aDiamond: ?$" to run [make player execute command "buy2diamond"]

wait 1 ticks

format slot 2 of player with 4 diamond named "&aDiamond: ?$" to run [make player execute command "buy4diamond"]

wait 1 ticks

format slot 3 of player with 8 diamond named "&aDiamond: ?$" to run [make player execute command "buy8diamond"]

wait 1 ticks

format slot 4 of player with 16 diamond named "&aDiamond: ?$" to run [make player execute command "buy16diamond"]

wait 1 ticks

format slot 5 of player with 34 diamond named "&aDiamond: ?$" to run [make player execute command "buy34diamond"]

wait 1 ticks

format slot 6 of player with 48 diamond named "&aDiamond: ?$" to run [make player execute command "buy48diamond"]

wait 1 ticks

format slot 7 of player with 56 diamond named "&aDiamond: ?$" to run [make player execute command "buy56diamond"]

wait 1 ticks

format slot 8 of player with 64 diamond named "&aDiamond: ?$" to run [make player execute command "buy64diamond"]

 

command /buy1diamond:

permission: op

trigger:

if player's balance is greater than or equal to 200:

give diamond sword to player

execute console command "eco take %player% 200"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy2diamond:

permission: op

trigger:

if player's balance is greater than or equal to 400:

give diamond sword to player

execute console command "eco take %player% 400"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy4diamond:

permission: op

trigger:

if player's balance is greater than or equal to 800:

give diamond sword to player

execute console command "eco take %player% 800"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy8diamond:

permission: op

trigger:

if player's balance is greater than or equal to 1600:

give diamond sword to player

execute console command "eco take %player% 1600"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy16diamond:

permission: op

trigger:

if player's balance is greater than or equal to 3400:

give diamond sword to player

execute console command "eco take %player% 3400"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy34diamond:

permission: op

trigger:

if player's balance is greater than or equal to 6800:

give diamond sword to player

execute console command "eco take %player% 6800"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy48diamond:

permission: op

trigger:

if player's balance is greater than or equal to 9600:

give diamond sword to player

execute console command "eco take %player% 9600"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy56diamond:

permission: op

trigger:

if player's balance is greater than or equal to 11200:

give diamond sword to player

execute console command "eco take %player% 200"

else:

send "§4/!\ §ctu n'as pas assez d'argent"

command /buy64diamond:

permission: op

trigger:

if player's balance is greater than or equal to 12800:

give diamond sword to player

execute console command "eco take %player% 12800"

else:

send "§4/!\ §ctu n'as pas assez d'argent"]

Posté(e)

1 - Cliques sur l'icone inséré (celui de droite sur l'image)

5cd0d3a875.png

 

2 - Puis sur code

e3bddcd083.png

 

3 - Une fenêtre s'ouvre

5bbef008b8.png

 

4 - Tu colles ton code dedans

3f8c88192c.png

 

5 - Cliques sur insérer

 

6 - Voici le résultat

Met ton code ici

  • J'aime 2
Posté(e)
1 - Cliques sur l'icone inséré (celui de droite sur l'image)

5cd0d3a875.png

 

2 - Puis sur code

e3bddcd083.png

 

3 - Une fenêtre s'ouvre

5bbef008b8.png

 

4 - Tu colles ton code dedans

3f8c88192c.png

 

5 - Cliques sur insérer

 

6 - Voici le résultat

Met ton code ici

command /iron:
   permission: op
   trigger:
       wait 1 ticks
       open chest with 1 rows named "&7Fer &8: &e&lAchat" to player
       wait 1 ticks
       format slot 0 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]
       wait 1 ticks
       format slot 1 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 1 of player with 2 iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription :" with lore "&8&lQuantitée &7: &81" with lore "&8&lPrix &7: &8100$" to run [make player execute command "buy2Fer"]
       wait 1 ticks
       format slot 2 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 2 of player with 4 iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription :" with lore "&8&lQuantitée &7: &81" with lore "&8&lPrix &7: &8100$" to run [make player execute command "buy4Fer"]
       wait 1 ticks
       format slot 3 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 3 of player with 8 iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription :" with lore "&8&lQuantitée &7: &81" with lore "&8&lPrix &7: &8100$" to run [make player execute command "buy8Fer"]
       wait 1 ticks
       format slot 4 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 4 of player with 16 iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription :" with lore "&8&lQuantitée &7: &81" with lore "&8&lPrix &7: &8100$" to run [make player execute command "buy16Fer"]
       wait 1 ticks
       format slot 5 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 5 of player with 34 iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription :" with lore "&8&lQuantitée &7: &81" with lore "&8&lPrix &7: &8100$" to run [make player execute command "buy34Fer"]
       wait 1 ticks
       format slot 6 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 6 of player with 48 iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription :" with lore "&8&lQuantitée &7: &81" with lore "&8&lPrix &7: &8100$" to run [make player execute command "buy48Fer"]
       wait 1 ticks
       format slot 7 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 7 of player with 56 iron ingot named "&7Fer &8: &e&lAchat" to run [make player execute command "buy56Fer"]
       wait 1 ticks
       format slot 8 of player with a iron ingot named "&7Fer &8: &e&lAchat" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix &7: &8100$ " to run [make player execute command "buy1Fer"]        format slot 8 of player with 64 iron ingot named "&7Fer &8: &e&lAchat" to run [make player execute command "buy64Fer"]

command /buy1Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 101:
           give iron ingot to player
           execute player command "eco take %player% 100"
           send "§aVous avez acheté §b1 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
command /buy2Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 201:
           give 2 iron ingot to player
           execute console command "eco take %player% 200"
           send "§aVous avez acheté §b2 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"
           play raw sound "mob.wither.hurt" at player with pitch 1 volume 10
command /buy4Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 401:
           give 4 iron ingot to player
           execute console command "eco take %player% 400"
           send "§aVous avez acheté §b4 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"           
command /buy8Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 801:
           give 8 iron ingot to player
           execute console command "eco take %player% 800"
           send "§aVous avez acheté §b8 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"           
command /buy16Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 1601:
           give 16 iron ingot to player
           execute console command "eco take %player% 1600"
           send "§aVous avez acheté §b16 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"           
command /buy34Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 3401:
           give 34 iron ingot to player
           execute console command "eco take %player% 3400"
           send "§aVous avez acheté §b34 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"           
command /buy48Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 4801:
           give 48 iron ingot to player
           execute console command "eco take %player% 4800"
           send "§aVous avez acheté §b48 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"           
command /buy56Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 5601:
           give 56 iron ingot to player
           execute console command "eco take %player% 5600"
           send "§aVous avez acheté §b56 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"           
command /buy64Fer:
   permission: op
   trigger:
       if player's balance is greater than or equal to 6401:
           give 64 iron ingot to player
           execute console command "eco take %player% 6400"
           send "§aVous avez acheté §b64 §aFer"
       else:
           send "§4/!\ §ctu n'as pas assez d'argent"

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