Guest User

Untitled

a guest
Nov 8th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. #FFA Health Colors
  2.  
  3. options:
  4. P: <cyan>[<gray>UHC<cyan>]
  5.  
  6. command /ffacolors <text>:
  7. permission: skript.op
  8. usage: /ffacolors <on/off>
  9. trigger:
  10. if arg-1 is "on":
  11. set {FFAColors} to true
  12. broadcast "{@P} <white>FFA Colors Enabled"
  13. command "/scoreboard teams add GREEN Green"
  14. command "/scoreboard teams add YELLOW Yellow"
  15. command "/scoreboard teams add RED Red"
  16. command "/scoreboard teams option GREEN color green"
  17. command "/scoreboard teams option YELLOW color yellow"
  18. command "/scoreboard teams option RED color red"
  19.  
  20. if arg-1 is "off":
  21. delete {FFAColors}
  22. broadcast "{@P} <white>FFA Colors Disabled"
  23. command "/scoreboard teams remove GREEN"
  24. command "/scoreboard teams remove YELLOW"
  25. command "/scoreboard teams remove RED"
  26.  
  27. on join:
  28. {FFAColors} is true
  29. if health of player is greater than 7:
  30. command "/scoreboard teams join GREEN %player%"
  31. else if health of player is greater than 3:
  32. command "/scoreboard teams join YELLOW %player%"
  33. else:
  34. command "/scoreboard teams join RED %player%"
  35.  
  36. on damage of player:
  37. {FFAColors} is true
  38. wait 1 tick
  39. if health of victim is greater than 7:
  40. command "/scoreboard teams join GREEN %victim%"
  41. else if health of victim is greater than 3:
  42. command "/scoreboard teams join YELLOW %victim%"
  43. else:
  44. command "/scoreboard teams join RED %victim%"
  45.  
  46. on heal:
  47. {FFAColors} is true
  48. wait 1 tick
  49. if health of player is greater than 7:
  50. command "/scoreboard teams join GREEN %player%"
  51. else if health of player is greater than 3:
  52. command "/scoreboard teams join YELLOW %player%"
  53. else:
  54. command "/scoreboard teams join RED %player%"
  55.  
  56. every 10 seconds:
  57. {FFAColors} is true
  58. loop all players:
  59. if health of loop-player is greater than 7:
  60. command "/scoreboard teams join GREEN %loop-player%"
  61. else if health of loop-player is greater than 3:
  62. command "/scoreboard teams join YELLOW %loop-player%"
  63. else:
  64. command "/scoreboard teams join RED %loop-player%"
  65. wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment