Aller au contenu

[PvP] ComboHitsCounter


Tu préfère...  

5 membres ont voté

  1. 1. Tu préfère...

    • Un serveur Practice avec des knockbacks du futur
    • Un serveur HardCoreFaction basic
      0


Messages recommandés

Posté(e)
Il y a 19 ...

Bref la 30 messages pour te dire qu'il y a plus de 16 caractères,ou va le monde ?

Désoler mais je sais compté et il y en a 15. Au pire corrige pour voir.

Posté(e)

&7&m---------------

&7&m = 4

--------------- = 15

15+4 = 19

Bref les lignes ne peuvent pas dépasser 16 donc tu dois changer dans mon code les lignes avec les tirets,je suis trop occupé pour le faire la T_T

Posté(e)
&7&m---------------

&7&m = 4

--------------- = 15

15+4 = 19

Bref les lignes ne peuvent pas dépasser 16 donc tu dois changer dans mon code les lignes avec les tirets,je suis trop occupé pour le faire la T_T

Bah voila je t'ai demandé plus haut si le "&m&7" comptai tu m'a fouttu un vent.

 

Kriiista

Posté(e)

C'est un double post aussi,tu t'en doutes peut-être pas mais je clique sur la notif,ça me ramène au dernier message donc je lis pas forcément celui au dessus,croyant que c'était quelque chose que j'avais déjà vu ...

Bref j'ai pas envie de m'embrouiller,maintenant t'as compris donc si tu pourrais me dire si du coup ça marche :x

Posté(e)
C'est un double post aussi,tu t'en doutes peut-être pas mais je clique sur la notif,ça me ramène au dernier message donc je lis pas forcément celui au dessus,croyant que c'était quelque chose que j'avais déjà vu ...

Bref j'ai pas envie de m'embrouiller,maintenant t'as compris donc si tu pourrais me dire si du coup ça marche :x

Très mais pour une raison inconnu, la première ligne séparatrice (entre le titre et 'ComboHits' n'apparait pas.

Posté(e)

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

Posté(e)

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

Tu viens de me passer le même code, la première "--------------" du scoreboard n'apparait pas seulement celui d'en bas

 

LLWjQeq.png

 

Kriista

Posté(e)

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 trouvé !

En faite il ne faut pas mettre le même truc dans un scoreboard !

Kriiista

×
×
  • Créer...

Information importante

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.