Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function scoreboardUpdate(player: player, scoreboard: text):
- set title of skoreboard {_player} to {scoreboards::%{_scoreboard}%::title}
- reset slots numbers between 1 and 16 of skoreboard {_player}
- loop {scoreboards::%{_scoreboard}%::lines::*}:
- add 1 to {_line}
- set slot {_line} of skoreboard {_player} to loop-value
- on script load:
- add " " to {scoreboards::default::lines::*}
- set {scoreboards::default::title} to " "
- on join:
- setup skoreboard for player
- add player to {scoreboards::default::players::*}
- every 10 ticks:
- if {test} is not set:
- set {test} to true
- if {test} is true:
- loop all players:
- if loop-player is in world "world":
- set {_amount} to amount of players in world "world"
- 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-------------------------"
- set {test} to false
- set {scoreboards::default::title} to "&b▆&3▇&b█ &eWindoriaNT &b█&3▇&b▆"
- else:
- loop all players:
- set {_amount} to amount of players in world "world"
- 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-------------------------"
- set {test} to true
- set {scoreboards::default::title} to "&3▆&b▇&3█ &6WindoriaNT &3█&b▇&3▆"
- loop all players where [{scoreboards::default::players::*} contains player input]:
- scoreboardUpdate(loop-value, "default")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement