Ploup !
[spoiler=Waw]
on damage of player:
set {timecombo.%attacker%} to 0
if victim is {target.%attacker%}:
add 1 to {combo.%attacker%}
set {combo.%victim%} to 0
set {target.%attacker%} to target of the attacker
if {target.%attacker%} is a player:
wipe attacker's sidebar
wait a tick
set name of sidebar of attacker to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of attacker to 3
set score "&5&lComboHits: %{combo.%attacker%}%" in sidebar of attacker to 2
set score "&7&m---------------" in sidebar of attacker to 1
wait a tick
wipe victim's sidebar
set name of sidebar of victim to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of victim to 3
set score "&5&lComboHits: %{combo.%victim%}%" in sidebar of victim to 2
set score "&7&m---------------" in sidebar of victim to 1
if {target.%attacker%} is not set:
set {combo.%victim%} to 0
add 1 to {combo.%attacker%}
set {target.%attacker%} to target of the attacker
wipe attacker's sidebar
wait a tick
set name of sidebar of attacker to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of attacker to 3
set score "&5&lComboHits: %{combo.%attacker%}%" in sidebar of attacker to 2
set score "&7&m---------------" in sidebar of attacker to 1
wait a tick
wipe victim's sidebar
set name of sidebar of victim to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of victim to 3
set score "&5&lComboHits: %{combo.%victim%}%" in sidebar of victim to 2
set score "&7&m---------------" in sidebar of victim to 1
if victim isn't {target.%attacker%}:
set {combo.%attacker%} to 0
set {combo.%victim%} to 0
set {target.%attacker%} to target of the attacker
wipe attacker's sidebar
wait a tick
set name of sidebar of attacker to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of attacker to 3
set score "&5&lComboHits: %{combo.%attacker%}%" in sidebar of attacker to 2
set score "&7&m---------------" in sidebar of attacker to 1
wait a tick
wipe victim's sidebar
set name of sidebar of victim to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of victim to 3
set score "&5&lComboHits: %{combo.%victim%}%" in sidebar of victim to 2
set score "&7&m---------------" in sidebar of victim to 1
every 1 second:
loop all players:
if {timecombo.%loop-player%} is set:
add 1 to {timecombo.%loop-player%}
if {timecombo.%loop-player%} = 5:
set {combo.%loop-player%} to 0
wipe loop-player's sidebar
wait a tick
set name of sidebar of loop-player to "&5Arcane &7PvP"
set score "&7&m---------------" in sidebar of loop-player to 3
set score "&5&lComboHits: %{combo.%loop-player%}%" in sidebar of loop-player to 2
set score "&7&m---------------" in sidebar of loop-player to 1
J'ai testé,tout marche ! Si tu frappes quelqu'un ça te donne 1 de combo,si on te frappe ça reset tout tes combos,si tu frappes quelqu'un d'autre ça reset tes combos,si pendant 5 sec tu frappes personne ça reset tes combos,ton problème avec les 16 caractères c'est tout simplement qu'une ligne de scoreboard ne peut pas faire plus de 16,ça va pas influencer le skript mais en gros elle sera invisible.La je les ai gardé donc change les dans le code :) De rien !