Advertisement
Guest User

Untitled

a guest
May 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. function scoreboardUpdate(player: player, scoreboard: text):
  2. set title of skoreboard {_player} to {scoreboards::%{_scoreboard}%::title}
  3. reset slots numbers between 1 and 16 of skoreboard {_player}
  4. loop {scoreboards::%{_scoreboard}%::lines::*}:
  5. add 1 to {_line}
  6. set slot {_line} of skoreboard {_player} to loop-value
  7.  
  8. on script load:
  9. add " " to {scoreboards::default::lines::*}
  10. set {scoreboards::default::title} to " "
  11.  
  12. on join:
  13. setup skoreboard for player
  14. add player to {scoreboards::default::players::*}
  15.  
  16. every 10 ticks:
  17. if {test} is not set:
  18. set {test} to true
  19. if {test} is true:
  20. loop all players:
  21. if loop-player is in world "world":
  22. set {_amount} to amount of players in world "world"
  23. set {scoreboards::default::lines::*} to "&7&m ------------------------- ", " ", "&bPseudo &7» &f%loop-player%", "&bGrade &7» &f%{grade.%loop-player%}%", " ", "&bKills &7» &f%{kills.%loop-player%}%", "&bMorts &7» &f%{morts.%loop-player%}%", "&bKillStreaks &7» &f%{killstreaks.%loop-player%}%", " ", "&bCoins &7» &f%{coin.%loop-player%}%", "&bConnecté(e)s &7&o» &f&o%{_amount}%", " " and "&7&m-------------------------"
  24. set {test} to false
  25. set {scoreboards::default::title} to "&b▆&3▇&b█ &eWindoriaNT &b█&3▇&b▆"
  26. else:
  27. loop all players:
  28. set {_amount} to amount of players in world "world"
  29. set {scoreboards::default::lines::*} to "&7&m ------------------------- ", " ", "&bPseudo &7» &f%loop-player%", "&bGrade &7» &f%{grade.%loop-player%}%", " ", "&bKills &7» &f%{kills.%loop-player%}%", "&bMorts &7» &f%{morts.%loop-player%}%", "&bKillStreaks &7» &f%{killstreaks.%loop-player%}%", " ", "&bCoins &7» &f%{coin.%loop-player%}%", "&bConnecté(e)s &7&o» &f&o%{_amount}%", " " and "&7&m-------------------------"
  30. set {test} to true
  31. set {scoreboards::default::title} to "&3▆&b▇&3█ &6WindoriaNT &3█&b▇&3▆"
  32. loop all players where [{scoreboards::default::players::*} contains player input]:
  33. scoreboardUpdate(loop-value, "default")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement