Aller au contenu
  • 0

Attacker


Question

Posté(e)

Bonjour Bonswar

Pourquoi ce code ne fonctionne pas

sa ne send pas a l'attacker:

on death of player:
   if {bb.rouge.%player%} or {bb.bleu.%player%} is true:
       loop {bb.jeux.%{bb.game.%player%}%::*}:
           if {bb.rouge.%player%} is true:
               remove 1 from {bb.life.red.%{bb.game.%player%}%}
               add 1 from {coin.%UUID of attacker%}
               send "{@logo} &6Un ennemi en moin !" to attacker
               send "{@logo} &6Vous gagnez +1 GCoin" to attacker

Merci

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Ce qui donne:

on death of player:
   if {bb.rouge.%victim%} or {bb.bleu.%victim%} is true:
       loop {bb.jeux.%{bb.game.%victim%}%::*}:
           if {bb.rouge.%victim%} is true:
               remove 1 from {bb.life.red.%{bb.game.%victim%}%}
               add 1 from {coin.%UUID of attacker%}
               send "{@logo} &6Un ennemi en moin !" to attacker
               send "{@logo} &6Vous gagnez +1 GCoin" to attacker

  • 0
Posté(e)
Ce qui donne:

on death of player:
   if {bb.rouge.%victim%} or {bb.bleu.%victim%} is true:
       loop {bb.jeux.%{bb.game.%victim%}%::*}:
           if {bb.rouge.%victim%} is true:
               remove 1 from {bb.life.red.%{bb.game.%victim%}%}
               add 1 from {coin.%UUID of attacker%}
               send "{@logo} &6Un ennemi en moin !" to attacker
               send "{@logo} &6Vous gagnez +1 GCoin" to attacker

Merci :D

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