Jump to content

TAB skript


Mexio

Recommended Posts

I am trying to make a tab skript, but it doesnt seem to work.

SKRIPT:
every 2 seconds:
    loop all players:
        set tab header to "%nl%&7-------------&6Multi&2Server-------------" and footer to "%nl%&6MuSv.Minehut.GG"
 

 

Link to comment
Share on other sites

Hello!

There are many addons that provide header/footer control of the tablist. 
I would highly advise you not to use periodical loops.

set tab header to %string% and footer to %string% for %player%

Source: https://skripthub.net/docs/?id=87 - Requires SkRayFall

Try more simple code like this:

on join:
    while player is online:
        set tab header to "Hey, Welcome to my Server!" and footer to "Players: %amount of online players%" for player
        #REMEMBER that local variables do not get deleted in a while loop!

Feel free to experiment with it. You are welcome to use periodical loops, but this is my suggestion.

Please feel free to continue this thread if you need more help. :) 

  • Like 1

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

unknown.pngunknown.png

Link to comment
Share on other sites

Try this

on join:
    while player is online:
        set {_header} to "The Header text here"
        set {_footer} to "and %new line%Footer text here"
        set tab header to {_header} and footer to {_footer} for player
        wait 1 second

 

 

 

Hey, I am a java developer/website designer and I make free skripts and post them at My Spigot Page.

Screenshot_50.png.7f7af36920d793847620b7472ebbd3e9.png

vbb.png.4cff1981e1b0907c8a0acd45fadca07f.png

Screenshot_23.png.4068cda3174d219ba5b3bf576c56de9e.png

  • Executive at PracticynLLC
  • Employee at MDC Development
  • Founder of  NightmarePvP
  • Owner of OrbitSky
  • Trainee at FlamePvP

www.minehut.xyz

www.practicyn.com

www.skript.live

www.skriptify.xyz

Copyright @ PracitcynLLCo

Link to comment
Share on other sites

Watch this YouTube video on how to make it.

  • Thanks 1

Founder - Minehut.xyz

The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better.

Support | 28/08/20 -13/09/20

Senior Support | 13/09/20 - 19/10/20

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

Link to comment
Share on other sites

On 9/5/2020 at 7:30 AM, Keuto said:

I'm really new to skript, but I believe it should look something like this:

 

every 2 seconds:

    loop all players:

        set loop-player's tablist header to "here"

  



 

im not entirely sure here but that would work if it was like this.

every 2 seconds:
    loop all players:
        set loop-player's tablist header to "here"

that will cause extreme lag onto the server so instead use this

every 2 seconds:
    loop all players:
        if loop-player has permission op:
            cancel event
                else if loop-player has permission name.ofperm:
                    set loop-player's tablist header to "here"

 

 

 

Link to comment
Share on other sites

  • 8 months later...
on join:
    while player is online:
        set {_header} to "Random Smp Server Yeah gys"
        set {_footer} to "and %new line%Footer text here"
        set tab header to {_header} and footer to {_footer} for player
        wait 1 second
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...