Il n'y a pas de "Au pire",
Je suis et nous somme là pour t'aider,
Si la modification que j'ai apporté ne marche pas essaye celle ci:
J'ai refais tout le code:
on first join:
set {Argent.%player%} to 100
command /kitachat [<text>]:
trigger:
if arg 1 is not set:
wait 2 ticks
open chest with 1 rows named "&eBoutique" to player
wait 1 ticks
format slot 0 of player with diamond sword named "&8&lFullEnchant" with lore "&bPrix: 2 000 Fighticoins" to run [make player execute command "/kitachats FullEnchant"]
format slot 1 of player with arrow named "&3&lSniper" with lore "&bPrix: 5 000 Fighticoins" to run [make player execute command "/kitachats Sniper"]
format slot 2 of player with bow named "&e&lSurvival Games" with lore "&bPrix: 7 000 Fighticoins" to run [make player execute command "/kitachats Sg"]
command /kitachats <text>:
trigger:
if arg 1 is "FullEnchant":
if {Argent.%player%} > 7000:
remove 7000 from {Argent.%player%}
send "&7&oVous avez acheter le kit avec succés"
message "&2Bank Centrale >> &7Votre solde à été déduit de 7.000€"
#AJOUTE LES EFFET,GIVE ECT
else:
send "&4Vous n'avez pas assez &cd'argent&4 pour effectuer cette achat"
command /mo:
trigger:
add 10000 to {Argent.%player%}
send "&6Vous vous avez rajouté 10.000€ à votre solde"
command /moneyy:
trigger:
message "&2Bank Centrale >> &7Solde: &4%{Argent.%player%}% €"
Il te reste plus qu'a rajouter les kits et les effets :)
Ajout de commande :
/mo
permet de s'ajouter 10 000
/moneyy
permet de voir son argent