Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function formatNum(n:number) :: string:
- if {_n} is set:
- set {_pre::*} to "K", "M", "B", "T" and "Q"
- if {_n} < 10^3:
- return "%{_n}%"
- set {_a} to 6
- set {_i} to 1
- while {_o} is not set:
- if {_n} <= (10^{_a}-1):
- set {_r} to ({_n}/10^({_a}-3))
- set {_o} to "%{_r}%%{_pre::%{_i}%}%"
- add 3 to {_a}
- add 1 to {_i}
- return {_o}
- else:
- return "0"
- on join:
- while player is online:
- scoreboard(player)
- wait 2 seconds
- function scoreboard(p: player):
- set {_t} to mini message from "<b><gradient:#0870FB:#00B9F1>PixelS</gradient><gradient:#00B9F1:#00E7FF>MP.Fun</gradient></b>"
- set title of {_p}'s scoreboard to "%{_t}%"
- set {players.online} to number of all players
- set {money::%uuid of {_p}%} to {_p}'s balance
- set line 1 of {_p}'s scoreboard to "&7 "
- set line 2 of {_p}'s scoreboard to " &c%{_p}%"
- set line 3 of {_p}'s scoreboard to " <#03FF00>&l$ &fᴍᴏɴᴇʏ: "
- set line 4 of {_p}'s scoreboard to " <#fc6603>☠ &r&fᴅᴇᴀᴛʜѕ: "
- set line 5 of {_p}'s scoreboard to " <#fc1c03>🗡 &fᴋɪʟʟѕ: "
- set line 6 of {_p}'s scoreboard to " &6&l⏰ &fᴘʟᴀʏᴛɪᴍᴇ: "
- set line 7 of {_p}'s scoreboard to " <#fc0303>❤ &fʜᴇᴀʀᴛѕ: "
- set line 8 of {_p}'s scoreboard to " <#fcf003>⌛ &fᴋᴇʏᴀʟʟ: "
- set line 9 of {_p}'s scoreboard to " <#0394fc>⚑ &fᴛᴇᴀᴍ: "
- set line 10 of {_p}'s scoreboard to " <#b603fc>☄ &fɢᴇᴍѕ: "
- set line 11 of {_p}'s scoreboard to "&7"
- set line 12 of {_p}'s scoreboard to " &a[&a&l$&a] "
- set line 13 of {_p}'s scoreboard to " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement