Aller au contenu
  • 0

Ajouter 1 à ma variable puis retirer l'item du joueur


Question

Posté(e)

Bonsoir, tout est dans le titre je veux qu'avec un click droit ça ajoute 1 à ma variable et que ça retire l'item appelé [ATTACH=full]4792[/ATTACH] de mon inventaire, j'ai essayé comme ça :

on rightclick with paper:
       if name of tool of player is "&8[&a&lJournalier&8]":
       add 1 to {journa.%player%}
       wait 1 tick
       remove a paper from player inventory

 

Rien. Pas d'erreur mais non fonctionnel

 

Puis

on rightclick with paper:
       if name of tool of player is "&8[&a&lJournalier&8]":
       add 1 to {journa.%player%}
       wait 1 tick
       remove a paper named "&8[&a&lJournalier&8]" from player inventory

 

Rien, j'attend des réponses si possible bonne soirée.

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

on rightclick with paper:
if name of tool of player is "&8[&a&lJournalier&8]":
add 1 to {journa.%player%}
wait 1 tick
remove a paper named "&8[&a&lJournalier&8]" from player inventory[/Code]

ça ne fait rien

  • 0
Posté(e)

"Player('s) inventory"

on rightclick with paper:
   if name of tool of player is "&8[&a&lJournalier&8]": #ou if player is holding a paper named "....":
       add 1 to {journa.%player%}
       wait 1 tick
       remove a paper named "&8[&a&lJournalier&8]" from player's inventory

  • 0
Posté(e)

J

"Player('s) inventory"

on rightclick with paper:
   if name of tool of player is "&8[&a&lJournalier&8]": #ou if player is holding a paper named "....":
       add 1 to {journa.%player%}
       wait 1 tick
       remove a paper named "&8[&a&lJournalier&8]" from player's inventory

Je reçois la papier avec un kit d'essentials et quand je click droit rien ne change :/

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