Jump to content

nick without ascii characters


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...