kingdom Posted September 30, 2014 Share Posted September 30, 2014 (edited) Hi everyone .. guys i want to edit this script for the scoreboard and admin players list .. example : i set my super nick to "кιηg∂σм" its ok in the chat , But i want this nickname in the scoreboard and admin players list too , because i want to know who really is .. addCommandHandler ( "supernick", function ( player, _, nick ) if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then if ( nick ) and ( string.len ( nick ) <= 80 ) then setElementData ( player, "CustomTag", tostring ( nick ) ) outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) end else outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) end end ) addEventHandler ( "onPlayerChat", root, function ( msg ) local r, g, b = getPlayerNametagColor ( source ) local value = getElementData ( source, "CustomTag" ) if ( value ) then cancelEvent ( ) outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) end end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local acc = getPlayerAccount ( player ) if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) end end end ) addEventHandler ( "onPlayerLogin", root, function ( _, acc ) if ( getAccountData ( acc, "CustomTag" ) ) then setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) end end ) addEventHandler ( "onPlayerQuit", root, function ( ) local acc = getPlayerAccount ( source ) if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) end end ) Edited October 2, 2014 by Guest Link to comment
Bonsai Posted September 30, 2014 Share Posted September 30, 2014 Whats the point of this super nick? Link to comment
kingdom Posted September 30, 2014 Author Share Posted September 30, 2014 Whats the point of this super nick? Put many colors in the nickname and "patterned lettering" .. Link to comment
Bonsai Posted September 30, 2014 Share Posted September 30, 2014 Well, 80 letters for a nick seems pretty long. You will have to edit the scoreboard and admin resource to use the super nick instead of normal player nickname. But as you probably can't, just don't use this s h i t at all, since its only for admins anyway. Link to comment
Anubhav Posted October 1, 2014 Share Posted October 1, 2014 You can't do it in scoreboard at all ( not even set element data on 'Name' ( I tested it. ) ). You should find a new way by adding and removing columns and setting player nick. You must edit admin resource for super nick. Link to comment
Bonsai Posted October 1, 2014 Share Posted October 1, 2014 up up up So you are waiting for someone to post a working script? I told you what to do. What else you want. You can't do it in scoreboard at all ( not even set element data on 'Name' ( I tested it. ) ). Well, you tested wrong. Of course you can do that. Obviously not by Element Data tho. Link to comment
kingdom Posted October 2, 2014 Author Share Posted October 2, 2014 So i did it , close this post .. Link to comment
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