Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FFA Health Colors
- options:
- P: <cyan>[<gray>UHC<cyan>]
- command /ffacolors <text>:
- permission: skript.op
- usage: /ffacolors <on/off>
- trigger:
- if arg-1 is "on":
- set {FFAColors} to true
- broadcast "{@P} <white>FFA Colors Enabled"
- command "/scoreboard teams add GREEN Green"
- command "/scoreboard teams add YELLOW Yellow"
- command "/scoreboard teams add RED Red"
- command "/scoreboard teams option GREEN color green"
- command "/scoreboard teams option YELLOW color yellow"
- command "/scoreboard teams option RED color red"
- if arg-1 is "off":
- delete {FFAColors}
- broadcast "{@P} <white>FFA Colors Disabled"
- command "/scoreboard teams remove GREEN"
- command "/scoreboard teams remove YELLOW"
- command "/scoreboard teams remove RED"
- on join:
- {FFAColors} is true
- if health of player is greater than 7:
- command "/scoreboard teams join GREEN %player%"
- else if health of player is greater than 3:
- command "/scoreboard teams join YELLOW %player%"
- else:
- command "/scoreboard teams join RED %player%"
- on damage of player:
- {FFAColors} is true
- wait 1 tick
- if health of victim is greater than 7:
- command "/scoreboard teams join GREEN %victim%"
- else if health of victim is greater than 3:
- command "/scoreboard teams join YELLOW %victim%"
- else:
- command "/scoreboard teams join RED %victim%"
- on heal:
- {FFAColors} is true
- wait 1 tick
- if health of player is greater than 7:
- command "/scoreboard teams join GREEN %player%"
- else if health of player is greater than 3:
- command "/scoreboard teams join YELLOW %player%"
- else:
- command "/scoreboard teams join RED %player%"
- every 10 seconds:
- {FFAColors} is true
- loop all players:
- if health of loop-player is greater than 7:
- command "/scoreboard teams join GREEN %loop-player%"
- else if health of loop-player is greater than 3:
- command "/scoreboard teams join YELLOW %loop-player%"
- else:
- command "/scoreboard teams join RED %loop-player%"
- wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment