Advertisement
Guest User

Scoreboard

a guest
May 25th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. on join:
  2. display board named "&0=== &8[&6EssKaPvP&8] &0===" to player
  3. make score "&4%player%" in board of player to 9
  4. make score "&4Kills: &b%{Kills.%player%}%" in board of player to 8
  5. make score "&4Death: &b%{Deaths.%player%}%" in board of player to 7
  6. make score "&4Ratio: &b%{Kills.%player%} / {Deaths.%player%}%" in board of player to 6
  7. make score "&4Streak: &b%{Serie.%player%}%" in board of player to 5
  8. make score "&4StreakMAX: &b%{SerieMAX.%player%}%" in board of player to 4
  9. move display of player to SIDEBAR
  10.  
  11. on death of a player:
  12. if attacker is a player:
  13. # Victim
  14. display board named "&0=== &8[&6EssKaPvP&8] &0===" to victim
  15. make score "&4%victim%" in board of victim to 9
  16. make score "&4Kills: &b%{Kills.%victim%}%" in board of victim to 8
  17. make score "&4Death: &b%{Deaths.%victim%}%" in board of victim to 7
  18. make score "&4Ratio: &b%{Kills.%victim%} / {Deaths.%victim%}%" in board of victim to 6
  19. make score "&4Streak: &b%{Serie.%victim%}%" in board of victim to 5
  20. make score "&4StreakMAX: &b%{SerieMAX.%victim%}%" in board of victim to 4
  21. move display of victim to SIDEBAR
  22.  
  23. # Attacker
  24. display board named "&0=== &8[&6EssKaPvP&8] &0===" to attacker
  25. make score "&4%attacker%" in board of attacker to 9
  26. make score "&4Kills: &b%{Kills.%attacker%}%" in board of attacker to 8
  27. make score "&4Death: &b%{Deaths.%attacker%}%" in board of attacker to 7
  28. make score "&4Ratio: &b%{Kills.%attacker%} / {Deaths.%attacker%}%" in board of attacker to 6
  29. make score "&4Streak: &b%{Serie.%attacker%}%" in board of attacker to 5
  30. make score "&4StreakMAX: &b%{SerieMAX.%attacker%}%" in board of attacker to 4
  31. move display of attacker to SIDEBAR
  32.  
  33. else:
  34. display board named "&0=== &8[&6EssKaPvP&8] &0===" to victim
  35. make score "&4%victim%" in board of victim to 9
  36. make score "&4Kills: &b%{Kills.%victim%}%" in board of victim to 8
  37. make score "&4Death: &b%{Deaths.%victim%}%" in board of victim to 7
  38. make score "&4Ratio: &b%{Kills.%victim%} / {Deaths.%victim%}%" in board of victim to 6
  39. make score "&4Streak: &b%{Serie.%victim%}%" in board of victim to 5
  40. make score "&4StreakMAX: &b%{SerieMAX.%victim%}%" in board of victim to 4
  41. move display of victim to SIDEBAR
  42.  
  43. on join:
  44. if {Kills.%player%} is not set:
  45. set {Kills.%player%} to 0
  46.  
  47. on join:
  48. if {Deaths.%player%} is not set:
  49. set {Deaths.%player%} to 0
  50.  
  51. on join:
  52. if {Serie.%player%} is not set:
  53. set {Serie.%player%} to 0
  54.  
  55. on join:
  56. if {SerieMAX.%player%} is not set:
  57. set {SerieMAX.%player%} to 0
  58.  
  59. on death of a player:
  60. add 1 to {Deaths.%victim%}
  61. if {Serie.%victim%} is bigger than {SerieMAX.%victim%}:
  62. set {Serie.%victim%} to {SerieMAX.%victim%}
  63. wait 0.1 tick
  64. set {Serie.%victim%} to 0
  65.  
  66. on death of a player:
  67. attacker is a player:
  68. add 1 to {Kills.%attacker%}
  69. add 1 to {Serie.%attacker%}
  70.  
  71. command /killstreak [<player>]:
  72. aliases: ks
  73. trigger:
  74. if arg 1 is set:
  75. send "&7=======&8[&6%arg 1%&8]&7======="
  76. send "&7===&8| &6Kills &7: &3%{Kills.%arg 1%}%"
  77. send "&7===&8| &6Deaths &7: &3%{Deaths.%arg 1%}%"
  78. send "&7===&8| &6Serie &7: &3%{Serie.%arg 1%}%"
  79. send "&7===&8| &6SerieMAX &7: &3%{SerieMAX.%arg 1%}%"
  80. send "&7=======&8[&6KillStats&8]&7======="
  81. else:
  82. send "&7=======&8[&6%player%&8]&7======="
  83. send "&7===&8| &6Kills &7: &3%{Kills.%player%}%"
  84. send "&7===&8| &6Deaths &7: &3%{Deaths.%player%}%"
  85. send "&7===&8| &6Serie &7: &3%{Serie.%player%}%"
  86. send "&7===&8| &6SerieMAX &7: &3%{SerieMAX.%player%}%"
  87. send "&7=======&8[&6KillStats&8]&7======="
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement