1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Nametags in script

Discussion in 'Skript' started by Adrihun, Apr 13, 2017.

Thread Status:
Not open for further replies.
  1. Adrihun

    Adrihun Member

    Joined:
    Feb 1, 2017
    Messages:
    368
    Likes Received:
    6
    I want to make a Nametag script with Skript but i don't know how to do it. Is there a way to do it?

    Basically, i want my PermissionsEx prefix to show up before my name above my head in game.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Code (Skript):
    1.  
    2. On join:
    3.     Loop all players:
    4.     Set loop-player's tab name to "%colored loop-player's prefix% &f%loop-player%"
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    No no no.
    Not tab list. The name above your skin :emoji_slight_smile:
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    I think the tab list also sets the players display name.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    I already got a tablist script and it doesn't set the player's name tag. Only changes the name in tablist.
    Using MC 1.8 Skript 2.2 25dev
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Ok
     
    • Like Like x 1
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    you can use Skellet nametags, Tablist and Above player name
    Code (Skript):
    1.     on load:
    2.         create nametag "a-owner"
    3.         set prefix of nametag "a-owner" to "&6&lOWNER &f"
    Code (Skript):
    1. add player to nametag "a-owner"
    Code (Skript):
    1. remove player from nametag "a-owner"
    If you set the tag name in this order
    a-owner
    b-admin
    c-moderator
    It will organizer according to the alphabet on the tab list
     
    • Winner Winner x 3
    • Like Like x 1
    • Creative Creative x 1
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Thank you!
    --- Double Post Merged, Apr 14, 2017, Original Post Date: Apr 14, 2017 ---
    It works but at the end of the name tag there is a space
    is there a way to fix this
    --- Double Post Merged, Apr 14, 2017 ---
    bump
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    I doubt it. Just ignore it.
    That's genius!
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Adding into this, if you want to set their nametag (not nametag prefix/suffix) you can use MundoSK's nametag expression for it (settable):
    Code (Skript):
    1. %player's nametag
    2. nametag of %player%
    And while we are talking about nametags:
    My script, Nick/Skin Changer, let you change your skin, nametag, tab name, chat name with two simple commands.

    #ShamelessSelfPromotion
     
    • Like Like x 1
    • Creative Creative x 1
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    What i tried to do is set a player's nametag (above head) to like Owner Adrihun (but not with prefix) just normally.
    so like...
    On join:
    player has permission "owner.nametag"
    (nametag thing here)
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    You have to use the prefix for that, the nametag has a limit of 16 characters, same for the prefix and suffix but if you use them all you can have 48 characters free.
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    So i dont get it how do i use prefixes
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    One of the above guys said how, use Skellett nametags.
     
    • Agree Agree x 1
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    whats the nametag code
     
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Read up. It's already up there. No need for us to repeat it.
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    doesn't work?
    Code (Skript):
    1. [23:07:31 ERROR]: [skellett] [get] prefix [of] [the] [name][ ]tag [with] [id] %string% can't be set to anything (player tags.sk, line 49: set prefix of nametag "a-owner" to "%colored player's prefix% &f%player%"')
    2. [23:07:31 INFO]: [Skript] Encountered 1 error while reloading player tags.sk!
    Code (Skript):
    1. on join:
    2.     create nametag "a-owner"
    3.     set prefix of nametag "a-owner" to "%colored player's prefix% &f%player%"
    --- Double Post Merged, Apr 19, 2017, Original Post Date: Apr 19, 2017 ---
    update:

    Code (Skript):
    1. on join:
    2.     create nametag "a-owner"
    3.     set prefix of nametag "a-owner" to "&5&ltest &f"
    4.     add player to nametag "a-owner"
    [​IMG]

    Code (Skript):
    1. on join:
    2.     create nametag "a-owner"
    3.     set prefix of nametag "a-owner" to "&5&ltest "
    4.     add player to nametag "a-owner"
    [​IMG]
     
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    That's because you used bold. Try using "&r" instead of "&f"
     
    • Winner Winner x 1
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Thank you
    last question.
    when the player quits do i need to do "remove player from nametag "a-owner" "
     
Thread Status:
Not open for further replies.

Share This Page

Loading...