toxicsmoke11 Posted July 24, 2014 Share Posted July 24, 2014 i wanted to ask how could i make a player have some "invalid" characters like ┐ ? its possible but i dont know how,i saw it in few servers; most popular one was ERU but how could i make this?or i need custom admin,scoreboard,nametag resource with dx functions or something? Link to comment
12p Posted July 24, 2014 Share Posted July 24, 2014 You can use custom Element Data for this. It's kinda messy, but instead of letting everything (resources, chat) display the players' names, you must make them display said element data instead. There's also a better alternative, since element data uses a good amount of bandwidth. It's just a bit harder to manipulate from both server and client side. Link to comment
toxicsmoke11 Posted August 1, 2014 Author Share Posted August 1, 2014 sry for late reply,thanks Link to comment
toxicsmoke11 Posted August 1, 2014 Author Share Posted August 1, 2014 sry for double post but im having one problem with this i made command for this and seems like i am only one able to use this command and idk why function setCustomNick(player,cmd,data) if data then setElementData(player,"setnick",data) outputChatBox("Nick has been set to: "..data,player,255,255,255,true) outputChatBox(getElementData(player,"setnick")) -- debug purpose which only was outputted when i used the command,for others it didnt output at all on chat else outputChatBox("Correct Syntax is /setnick [Nickname]",player) end end addCommandHandler("setnick",setCustomNick) also i have made it so when you set the data that it saves into account if you have an account before you leave,and that it loads it when you login it saves the data perfectly fine for me and it loads it fine too but for other players this thing doesn't work anyone knows why? Link to comment
Addlibs Posted August 1, 2014 Share Posted August 1, 2014 Admin Panel by default blocks command.setnick (Admin Panel > Set Nick) from 'Default' ACL. Link to comment
toxicsmoke11 Posted August 1, 2014 Author Share Posted August 1, 2014 still doesnt work i changed it to snick Link to comment
Et-win Posted August 1, 2014 Share Posted August 1, 2014 Cancel it? cancelEvent() --Event: onPlayerChangeNick 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