Je cherche a faire en sorte que quand je fait la command
/!board!
Tout le monde execute la command automatiquement
Voilà mon skript au cas ou
on load:
set {min} to 0
set {kills.pve} to 0
set {episode} to 1
loop all players:
set {kills.%loop-player%} to 0
on join:
if {kills.%player%} is not set:
set {kills.%player%} to 0
on death of a player:
if attacker is a player:
add 1 to {kills.%attacker%}
update score with id "uhc2" to "&6Vos kills: &e%{kills.%player%}%" and -1
else:
add 1 to {kills.pve}
update score with id "uhc3" to "&6Kills du PvE: &e%{kills.pve}%" and -2
command /!board!:
trigger:
if {kills.%player%} is not set:
set {kills.%player%} to 0
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 "uhc1"
set id based score "&6Vos kills: &e%{kills.%player%}%" in sidebar of player to -1 with id "uhc2"
set id based score "&6Kills du PvE: &e%{kills.pve}%" in sidebar of player to -2 with id "uhc3"
set id based score "&7&m ---&7 Temps &7&m ---" in sidebar of player to -3 with id "uhc4"
set id based score "&7&m-------------" in sidebar of player to -7 with id "uhc8"
set {min} to 20
set id based score "&6Episode: &2%{episode}%" in sidebar of player to -4 with id "uhc5"
set id based score "&6Fin D'Episode: &e%{min}%min" in sidebar of player to -5 with id "uhc6"
set id based score "&6PvP:&e%{min}%min" in sidebar of player to -6 with id "uhc7"
loop {min} times:
add -1 to {min}
if {min} is greater than 0:
update score with id "uhc7" to "&6PvP: &e%{min}%min" and -6
update score with id "uhc6" to "&6Fin D'Episode: &e%{min}%min" and -5
wait 1 minute
else:
delete score with id "uhc7"
set {min} to 20
add 1 to {episode}
update score with id "uhc6" to "&6Fin D'Episode: &e{min}min" and -5
update score with id "uhc5" to "&6Episode: &e%{episode}%" and -6
stop
if {episode} is 1:
broadcast "&4PvP est désormais autorisé, &1Bonne Chance !"
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,
Je cherche a faire en sorte que quand je fait la command
/!board!
Tout le monde execute la command automatiquement
Voilà mon skript au cas ou
Je vous remercie d'avance
1 réponse à cette question
Messages recommandés