Bonjour aujourd'hui j'ai fait ca :
On rightclick on player with bars:
send "&aQue le combat commence !" to player
send "&aQue le combat commence !" to targeted entity
if {gladiator.cours.%player%} is false:
cancel event
set {_gladiator.%targeted entity%} to "%targeted entity%"
set {gladiator.back.%player%} to location of player
hide player to players
hide entity to players
hide players to player
hide players to entity
reveal entity to player
reveal player to entity
teleport player to {gladiator.arene.1}
teleport {_gladiator.%targeted entity%} to {gladiator.arene.2}
set {gladiator.cours.%player%} to true
set {gladiator.cours.%targeted entity%} to true
on death:
if {gladiator.cours.%victim%} is true:
if {gladiator.cours.%attacker%} is true:
teleport victim to {spawn}
teleport attacker to {gladiator.back.%player%}
set {gladiator.cours.%attacker%} to false
set {gladiator.cours.%victim%} to false
reveal victim to all players
reveal attacker to all players
reveal all players to victim
reveal all players to attacker
command /setgladiator <text>:
trigger:
if arg 1 is "1":
set {gladiator.arene.1} to location of player
send "&aTu vient de set le spawn 1"
if arg 1 is "2":
set {gladiator.arene.2} to location of player
send "&aTu vient de set le spawn 2"
Sauf que cela ne marche pas aucune erreur
Cordialement Yghore