Scoreboard

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 4, 2021
14
0
1
Hi, I was curious about how I would go about changing someone's name on a scoreboard. Like on my server when someone gets a kill their name appears on the scoreboard with how many kills they have. My question is how would I change it for like when they die their name gets crossed out?
 
Hi, I was curious about how I would go about changing someone's name on a scoreboard. Like on my server when someone gets a kill their name appears on the scoreboard with how many kills they have. My question is how would I change it for like when they die their name gets crossed out?
Send your current code
 
on death of player:
if {KB::Enabled} is true:
if {LD::%player%} is set:
add 1 to {KB::Kills::%{LD::%player%}%}
loop all players:
set score "%{LD::%player%}%" in sidebar of loop-player to {KB::Kills::%{LD::%player%}%}
else:
add 1 to {KB::emoji_stuck_out_tongue:vE}
loop all players:
set score " &8&l• &cPvE&7..." in sidebar of loop-player to {KB::emoji_stuck_out_tongue:vE}
delete {LD::%player%}
 
on death of player:
if {KB::Enabled} is true:
if {LD::%player%} is set:
add 1 to {KB::Kills::%{LD::%player%}%}
loop all players:
set score "%{LD::%player%}%" in sidebar of loop-player to {KB::Kills::%{LD::%player%}%}
else:
add 1 to {KB::emoji_stuck_out_tongue:vE}
loop all players:
set score " &8&l• &cPvE&7..." in sidebar of loop-player to {KB::emoji_stuck_out_tongue:vE}
delete {LD::%player%}
In the future, put your script into code format. Also, I'm pretty sure we're confused by your question.
 
Understandable and im not sure it was my friends code but anyways I got another question. Is there a way to check for something being on surface? Like being able to spawn a block at a specific location but on the surface?
 
Status
Not open for further replies.