tosfera Posted April 28, 2013 Share Posted April 28, 2013 Hey, Is there anyway to prevert people from changing their name? I've made it so far that they are being kicked for using the /nick command. so I was like; they can't change it now! and just a few mins later some1 changed it in their mta settings and had another name without reconnecting... I'd like to block all the ways to change your name. thanks! Link to comment
MIKI785 Posted April 28, 2013 Share Posted April 28, 2013 Try cancelling the https://wiki.multitheftauto.com/wiki/OnPlayerChangeNick event Link to comment
tosfera Posted April 28, 2013 Author Share Posted April 28, 2013 This did actually work, thanks! addEventHandler("onPlayerChangeNick", getRootElement(), function() cancelEvent(); end ); Link to comment
tosfera Posted April 28, 2013 Author Share Posted April 28, 2013 This did actually work, thanks! addEventHandler("onPlayerChangeNick", getRootElement(), function() cancelEvent(); end ); 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