J'ai fait un skript pout un Timer, quand je suis en solo et que je fait la command /t set on. Tout fonctionne, timer s'active etc...
Mais quand on es plusieurs et que je fait /t set on le Timer se lance que pour moi. Et le timer des autre ne fait rien (stagne).
Voici le skript en question:
command /timer:
trigger:
set name of sidebar of player to "&6&m-----&a UHC &6&m-----"
set id based score "&7&m ---&7 Infos &7&m ---" in sidebar of player to 0 with id "uhc0"
set id based score "&6Vos kills: &e%{stats.kills.%player%}%" in sidebar of player to -1 with id "uhc1"
set id based score "&6Kills du PvE: &e%{stats.mortpve}%" in sidebar of player to -2 with id "uhc2"
set id based score "&7&m ---&7 Temps &7&m ---" in sidebar of player to -3 with id "uhc3"
set id based score "&6Episode: &2%{episode}%" in sidebar of player to -4 with id "uhc4"
set id based score "&6Fin D'Episode: &e%{time.m}%:%{time.s}%" in sidebar of player to -5 with id "uhc5"
set id based score "&6PvP: &e%{time.m}%:%{time.s}%" in sidebar of player to -6 with id "uhc6"
set id based score "&7&m-------------" in sidebar of player to -7 with id "uhc7"
command /t <text> <text>:
trigger:
if arg 1 is "set":
if arg 2 is "on":
set {board} to true
broadcast "&eTimer activé"
make all players execute command "/timerreset"
if arg 1 is "set":
if arg 2 is "off":
set {board} to false
broadcast "&eTimer désactivé"
make all players execute command "/timerreset"
if arg 1 is "pause":
if arg 2 is "on":
set {board} to false
broadcast "&eTimer en pause !"
play raw sound "mob.wither.shoot" at all players with pitch 1 volume 2
if arg 2 is "off":
set {board} to true
broadcast "&ePause terminé !"
play raw sound "mob.wither.death" at all players with pitch 1 volume 2
command /timerreset:
trigger:
set {time.m} to 20
set {time.s} to 1
set {episode} to 1
set {pvp} to 0
set {m.pve} to 0
loop all players:
set {kills.%loop-player%} to 0
wipe player sidebar
make all players execute command "/timer"
every 1 second:
if {board} is true:
add -1 to {time.s}
edit score id "uhc6" to "&6PvP: &e%{time.m}%:%{time.s}%" and -6
edit score id "uhc5" to "&6Fin D'Episode: &e%{time.m}%:%{time.s}%" and -5
if {time.s} is 0:
set {time.s} to 60
add -1 to {time.m}
if {time.m} is 0:
if {time.s} is 1:
set {time.s} to 1
set {time.m} to 20
add 1 to {episode}
edit score id "uhc4" to "&6Episode: &2%{episode}%" and -4
delete score with id "uhc6"
add 1 to {pvp}
if {pvp} is 1:
play raw sound "mob.wolf.howl" at all players with pitch 1 volume 4
broadcast "&4Le PvP &eest désormais &aactivé !"
set {pvp} to 2
on join:
make all players execute command "/timer"
on death:
if victim is player:
play raw sound "mob.wither.spawn" at all players with pitch 1 volume 2
if attacker is player:
add 1 to {stats.kill.%attacker%}
edit score id "uhc1" to "&6Vos kills: &e%{stats.kills.%player%}%" and -1
else:
add 1 to {stats.mortpve}
edit score id "uhc2" to "&6Kills du PvE: &e%{stats.mortpve}%" and -2
"
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.
Question
SaoRex
Bonjour a tous,
J'ai fait un skript pout un Timer, quand je suis en solo et que je fait la command /t set on. Tout fonctionne, timer s'active etc...
Mais quand on es plusieurs et que je fait /t set on le Timer se lance que pour moi. Et le timer des autre ne fait rien (stagne).
Voici le skript en question:
Voilà en espèrent que vous puissiez m'aider.
SaoRex
3 réponses à cette question
Messages recommandés