Unkovic Posted August 26, 2018 Share Posted August 26, 2018 Is that possible? For example, if player changes his nick to keep his old nick? Link to comment
WiBox Posted August 26, 2018 Share Posted August 26, 2018 (edited) It is possible. Server Side: function onPlayerChangeNicks() outputChatBox("You're not allowed to change your nick name.", source, 255, 0, 0) cancelEvent() end addEventHandler("onPlayerChangeNick", root, onPlayerChangeNicks) If I'm not wrong you can make it like that, using: cancelEvent() will cancel a specific event, when I used: addEventHandler("onPlayerChangeNick", root, onPlayerChangeNicks) When I used "onPlayerChangeNick" and " cancelEvent() " I cancel the event with a message.. Edited August 26, 2018 by SSKE 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