Bonjours voici le code pour un mini jeux de type jump mais a la fin du code le loop player deconne et tp personne qui sont rentrer dans le mini ! C est un faute de variable ou de loop ?
options:
logo: &a[&6Irisia &a* &6Course&a]
on quit:
set {jump.%player%.join} to false
variables:
{jump.start} = false
{jump.%player%.join} = false
Command /jump <text> [<text>]:
trigger:
if arg 1 is "join":
if {jump.start} is true:
send "{@logo} &cLa partie est en cours"
stop
if {jump.%player%.join} is true:
send "{@logo} &cTu est deja en partie !"
stop
teleport player to {jump.waitroom}
set {jump.%player%.join} to true
add 1 to {jump.slots}
if {jump.slots} is 1:
execute console command "/jump start"
if arg 1 is "set":
if arg 2 is "waitroom":
set {jump.waitroom} to location of player
send "{@logo} Waitroom crée"
stop
if arg 2 is "arene":
set {jump.par} to location of player
send "{@logo} Start Crée"
stop
if arg 1 is "leave":
set {jump.slots} to 0
set {jump.%player%.join} to false
send "{@logo} Partie Quitter"
set {jump.start} to false
stop
if arg 1 is "start":
set {jump.start} to true
set {_chrono} to 16
loop 15 times:
add -1 to {_chrono}
wait 1 second
if {_chrono} is 15, 5 or 1:
broadcast "{@logo} La partie commence dans &4%{_chrono}% secondes"
wait 1 second
loop all players:
if {jump.%player%.join} is true:
teleport player to {jump.par}