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 comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
https://skripthub.net/docs/?id=936soo what the title says, i am trying to make health in tab show in numbers insted of hearts with a skript but i can't seem to figure out how, can anyone help me please?
Try with:soo what the title says, i am trying to make health in tab show in numbers insted of hearts with a skript but i can't seem to figure out how, can anyone help me please?
every 2 seconds:
loop all players:
set loop-player tab name to "%loop-player's prefix%%loop-player%&c ❤%health of loop-player%"
wait 1 second
Dude.. I sent you the docs link. Why can't you search it yourself?for the health, i want it to show near the player's name in tab, how do i do that?
maybe think at first, maybe i already searched and couldn't find it, thats why i asked here, you could be nice maybe?Dude.. I sent you the docs link. Why can't you search it yourself?
,,player's name in tab'' = player's tab name so you just open the docs and search for tab name. First match is almost always what you need.
So you can't find it.. Interesting... I already told you how to search it, ,,player's name in tab'' is the player's tab name, all you have to do is to search for tab name or Player's tab name in the DOCS.. I don't think it's that hard.. But you know.maybe think at first, maybe i already searched and couldn't find it, thats why i asked here, you could be nice maybe?
anyone i already fixed this, this post can be archived
before i mark this as "solved" mind giving an example on how to use this?You can also set their tab score (this is the numbers that appear right next to their little ping meter)
SkRayFall has something for that
https://skripthub.net/docs/?id=88
Try with:
From what I could understand, this is something you ask for, right?code_language.skript:every 2 seconds: loop all players: set loop-player tab name to "%loop-player's prefix%%loop-player%&c ❤%health of loop-player%" wait 1 second
Use this:
before i mark this as "solved" mind giving an example on how to use this?
[doublepost=1559959951,1559959738][/doublepost]
that gave me an error, https://gyazo.com/4f5d0d61782cf10760ab9585ca55fd97
every 2 seconds:
loop all players:
set loop-player tab name to "%loop-player's prefix%%loop-player%&c ❤%health of loop-player%"
wait 1 second
Use this:
In your code, you added a 's when i don't put it.code_language.skript:every 2 seconds: loop all players: set loop-player tab name to "%loop-player's prefix%%loop-player%&c ❤%health of loop-player%" wait 1 second
View attachment 3511
on packet:
if event-string is "PacketPlayOutUpdateHealth":
loop all players:
loop all players:
if {Teams.InTeam::%loop-player-1%} is set:
if {check::%uuid of player%} is not set:
set loop-player-1 tab name to "%{TeamColor::%{Teams.InTeam::%loop-player-1%}%::Reference}%%loop-player-1%"
set {check::%uuid of player%} to true
wait 1 tick
set tab score of loop-player-1 to floor(loop-player-1's health*10) for loop-player-2
set score "&4♥" below loop-player-1 to floor(loop-player-1's health*10) for loop-player-2
soo what the title says, i am trying to make health in tab show in numbers insted of hearts with a skript but i can't seem to figure out how, can anyone help me please?