Tablist Sorting

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

nUKEmAN4

New Member
May 25, 2017
3
0
1
23
So, i want to Owner be first, and Admin second, and builder third.
How to make sorted tablist? I tried to add &1&4&lOWNER, also for other ranks but didint work.

http://prntscr.com/l7lxve

Code:

code_language.skript:
every 2 seconds:
    loop all players:
        make all players see loop-player's prefix as "%{ng.rank.prefix.%loop-player%}%&r&f"
        set tab header to "%nl%&e&l&nNuked&b&l&nGalaxy%nl%&b&l&m-+-------------------------------+-%nl%%nl%&eIgrac: &6&l%loop-player% &7             &ePing: &6&l%ping of loop-player%%nl%&eDatum i Vrijeme: &6&l%now%%nl%" and footer to "%nl%&eNovosti, Prijave, i ostalo na: &6&l&nwww.nukedgalaxy.ga%nl%&b&l&m-+-------------------------------+-" for loop-player
        if {ng.team.in.%loop-player%} is true:
            set the loop-player's tablist name to "%{ng.rank.prefix.%loop-player%}%%{ng.rank.namecolor.%loop-player%}%%loop-player's name% &7[%{ng.team.in.name.%loop-player%}%]"
        else:
            set the loop-player's tablist name to "%{ng.rank.prefix.%loop-player%}%%{ng.rank.namecolor.%loop-player%}%%loop-player's name%"
 
Status
Not open for further replies.