joeyy29 Posted March 27, 2021 Share Posted March 27, 2021 how do i make a /baltop skript that is like essentials baltop but just limited to 5 people so it doesnt crash my server when i do it??? Link to comment Share on other sites More sharing options...
AHelpingCandy Posted March 27, 2021 Share Posted March 27, 2021 Here you go! Note: store the balance as {bal::%player's uuid%} or it won't work command /baltop: trigger: set {_sortedList::*} to sorted {bal::*} loop {bal::*}: add 1 to {_count} set {_indexes::%loop-value%} to loop-index if mod({_count}, 20) = 0: wait 1 tick set {_n} to 0 loop {_sortedList::*}: add 1 to {_n} set {_current} to {_indexes::%loop-value%} parsed as offline player set {_msg::%{_n}%} to "&7%{_current}% &f- &6%loop-value% bal" {_n} = 10 exit 1 loop message "&7&m &7< &a&lTop Balances &7>&7&m " loop {_msg::*}: set {_current} to loop-index parsed as int - 1 set {_c} to size of {_msg::*} - {_current} add {_msg::%{_c}%} to {_invertedList::*} set {_n} to 0 loop {_invertedList::*}: add 1 to {_n} message "&a##%{_n}% %loop-value%" 1 1 1 IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) Link to comment Share on other sites More sharing options...
Irishrice Posted March 27, 2021 Share Posted March 27, 2021 wow thanks didnt expect you do to all that :0 Link to comment Share on other sites More sharing options...
AHelpingCandy Posted March 28, 2021 Share Posted March 28, 2021 np IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now