Jump to content

Problem with /nick


Recommended Posts

When somebody makes / nick

it wouldn change the name on the Server but in the Settings.

How can i make that the name wouldnt change in the settings?

addEventHandler ( "onPlayerChangeNick", getRootElement(),function(old) 
          cancelEvent() 
          outputChatBox ("Du darfst deinen Namen nicht umändern! Frage einen Admin!", source, 255,0,0) 
end) 

Link to comment

You could also, remove "cancelEvent()" and just make it set the name, to what it was like:

addEventHandler ( "onPlayerChangeNick", root, 
    function (old) 
        setPlayerName(source,old) 
        outputChatBox ("Du darfst deinen Namen nicht umändern! Frage einen Admin!", source, 255,0,0) 
    end 
) 

Link to comment
That's not true, on my server I don't want players to use color codes on their nick, and when I try to set them on the settings, it cancels the event as well.

Sorry for interrupting, But how i can do that ? I mean not allowing players to use color codes in nicknames .?

Link to comment
That's not true, on my server I don't want players to use color codes on their nick, and when I try to set them on the settings, it cancels the event as well.

Try this guy code the name realy it won't change but in the setting it will change!

It'll appear as changed, but it won't change in game.

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