PlayTime In 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 comminuty!

    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.

KingDooms

Member
Jun 10, 2020
26
0
1
So im using a skript from Obey0001 which is a scoreboard, aka the file i uploaded and im trying to make it so it shows the playtime in the scoreboard.

I aleady have a playtime skript but it only does the command. Any helps?

Code of the playtime skript since i dont wanna upload the file as well:


every second:
loop all players:
add 1 to {s::%loop-player's uuid%}
if {s::%loop-player's uuid%} > 59:
remove 60 from {s::%loop-player's uuid%}
add 1 to {m::%loop-player's uuid%}
if {m::%loop-player's uuid%} > 59:
remove 60 from {m::%loop-player's uuid%}
add 1 to {h::%loop-player's uuid%}
if {h::%loop-player's uuid%} > 23:
remove 24 from {h::%loop-player's uuid%}
add 1 to {d::%loop-player's uuid%}

command /playtime [<offlineplayer>]:
trigger:
arg isn't set:
wait 1 tick
send ""
send "&f&l YOUR PLAYTIME (&7&l%player%&f)"
send ""
send "&f&l SECONDS:&7 %{s::%player's uuid%}%"
send "&f&l MINUTES:&7 %{m::%player's uuid%}%"
send "&f&l HOURS:&7 %{h::%player's uuid%}%"
send "&f&l DAYS:&7 %{d::%player's uuid%}%"
send ""
else:
wait 1 tick
send ""
send "&f&l PLAYTIME OF &7&l%arg%"
send ""
send "&f&l SECONDS:&7 %{s::%arg's uuid%}%"
send "&f&l MINUTES:&7 %{m::%arg's uuid%}%"
send "&f&l HOURS:&7 %{h::%arg's uuid%}%"
send "&f&l DAYS:&7 %{d::%arg's uuid%}%"
send ""
 

Attachments

  • ScoreBoards by Obey#0001.sk
    8.6 KB · Views: 245
Personally I have no clue how to do this.
Have you tried looking it up maybe on Google or Youtube? If not, maybe try! ^-^
 
Status
Not open for further replies.