Advertisement
Guest User

Skript SMP Scoreboard

a guest
Aug 27th, 2024
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.60 KB | Source Code | 0 0
  1. function formatNum(n:number) :: string:
  2.     if {_n} is set:
  3.         set {_pre::*} to "K", "M", "B", "T" and "Q"
  4.         if {_n} < 10^3:
  5.             return "%{_n}%"
  6.         set {_a} to 6
  7.         set {_i} to 1
  8.         while {_o} is not set:
  9.             if {_n} <= (10^{_a}-1):
  10.                 set {_r} to ({_n}/10^({_a}-3))
  11.                 set {_o} to "%{_r}%%{_pre::%{_i}%}%"
  12.             add 3 to {_a}
  13.             add 1 to {_i}
  14.         return {_o}
  15.     else:
  16.         return "0"
  17.  
  18.  
  19.  
  20. on join:
  21.   while player is online:
  22.     scoreboard(player)
  23.     wait 2 seconds
  24.  
  25. function scoreboard(p: player):
  26.     set {_t} to mini message from "<b><gradient:#0870FB:#00B9F1>PixelS</gradient><gradient:#00B9F1:#00E7FF>MP.Fun</gradient></b>"
  27.     set title of {_p}'s scoreboard to "%{_t}%"
  28.    set {players.online} to number of all players
  29.    set {money::%uuid of {_p}%} to {_p}'s balance
  30.    
  31.     set line 1 of {_p}'s scoreboard to "&7 "
  32.    set line 2 of {_p}'s scoreboard to " &c%{_p}%"
  33.     set line 3 of {_p}'s scoreboard to " <#03FF00>&l$ &fᴍᴏɴᴇʏ: "
  34.    set line 4 of {_p}'s scoreboard to " <#fc6603>☠ &r&fᴅᴇᴀᴛʜѕ: "
  35.     set line 5 of {_p}'s scoreboard to " <#fc1c03>🗡 &fᴋɪʟʟѕ: "
  36.    set line 6 of {_p}'s scoreboard to " &6&l⏰ &fᴘʟᴀʏᴛɪᴍᴇ:  "
  37.     set line 7 of {_p}'s scoreboard to " <#fc0303>❤ &fʜᴇᴀʀᴛѕ: "
  38.    set line 8 of {_p}'s scoreboard to " <#fcf003>⌛ &fᴋᴇʏᴀʟʟ: "
  39.     set line 9 of {_p}'s scoreboard to " <#0394fc>⚑ &fᴛᴇᴀᴍ: "
  40.    set line 10 of {_p}'s scoreboard to " <#b603fc>☄ &fɢᴇᴍѕ: "
  41.     set line 11 of {_p}'s scoreboard to "&7"
  42.    set line 12 of {_p}'s scoreboard to " &a[&a&l$&a] "
  43.     set line 13 of {_p}'s scoreboard to " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement