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.

Changing player's nametag with /disguise

Discussion in 'Skript' started by OfficialLiovo, Jun 21, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. OfficialLiovo

    OfficialLiovo Member

    Joined:
    Apr 29, 2017
    Messages:
    16
    Likes Received:
    1
    Hi, so I've got this code, and as you can see, it changes the player's tab name to the disguised name, but I want it to also change the player's nametag to "&c&lDR1 %arg-1%". Any ideas?
    Code (Skript):
    1. command /disguise [<text>]:
    2.     trigger:
    3.         if {rank.%player%} is not "JrAdmin" or "Admin" or "Manager" or "Owner" or "Dev":
    4.             send "&c&lPerms » &7You don't have permission!"
    5.         else:
    6.             if arg 1 is not set:
    7.                 if {server.disguised.%player%} is set:
    8.                     reset the player's displayed skin
    9.                     delete {server.disguised.%player%}
    10.                     send "&9&lDisguise » &7You are no longer disguised."
    11.                     rankLoad(player)
    12.                 else:
    13.                     send "&9&lDisguise » &e/disguise <user>"
    14.             if arg 1 is set:
    15.                 if {server.disguised.%player%} is set:
    16.                     reset the player's displayed skin
    17.                     delete {server.disguised.%player%}
    18.                     send "&9&lDisguise » &7You are no longer disguised."
    19.                 else:
    20.                     if arg 1 contains " ":
    21.                         send "&9&lDisguise » &7A name has to be one word!"
    22.                     else if the length of arg 1 is greater than 16:
    23.                         send "&9&lDisguise » &7A name has to be under 16 chars!"
    24.                     else:
    25.                         open chest with 1 row named "&cDisguise System - Skins" to player
    26.                         set {_steve} to "Steve" parsed as offline player
    27.                         set {_alex} to "ShadowDanceYT" parsed as offline player
    28.                         format slot 3 of player with {_steve}'s skull named "&a&lSTEVE" with lore "&7Disguise as &a%arg-1%&7 with the skin of &aSteve&7." to close then run [execute player command "/__set__skin__steve__ %arg-1%"]
    29.                         format slot 5 of player with {_alex}'s skull named "&a&lALEX" with lore "&7Disguise as &a%arg-1%&7 with the skin of &aAlex&7." to close then run [execute player command "/__set__skin__alex__ %arg-1%"]                  
    30.                         set player tab name to "&c&lDR1 &e%arg-1%"
    31.                        
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Can I have some code please? I don't get which to use
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    You need nametagedit

    i don't think there is a way without Nametagedit Plugins


    Code (Skript):
    1. set name tag of player to "&r", "Name", "&r"
    2. #Preifx - Name - Suffix
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    It doesn't work, I have nametagedit and umbaska installed. "Can't understand this condition/effect"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...