papsmurfer Posted May 21, 2010 Share Posted May 21, 2010 Hello guys I have a quick question..how can I prevent my players to change their name in game? For example if someones ingame name is Jim and he goes into mtas menu And changes it to chuck okay how can I code my server to still see him at Jim and have his name stay the same unless he registers another account? Purhaps by recording his serial? Because my server is set up so when a player logs in they are brought to a character selection screen and select their name there however right when they spawn as their character they can go to mtas menu and change the name to whatever they want, also how can I make it so two players can't have the same name? Thanks guys! Link to comment
mabako Posted May 21, 2010 Share Posted May 21, 2010 You need to cancel https://wiki.multitheftauto.com/wiki/OnPlayerChangeNick whenever the player is logged in. Link to comment
robhol Posted May 21, 2010 Share Posted May 21, 2010 This is something you might want to reconsider. Being forced not to change one's name is just annoying, and from a scripting point of view, I can't see a good reason to impose that limitation on your players. From an administration point of view, I might, but in either case there are better solutions. What do you have against nick changes? Link to comment
papsmurfer Posted May 21, 2010 Author Share Posted May 21, 2010 Well my script is a rpg script... Players would dm and break the rules drive down the street chaange their skin and their name and I don't want the server announcement everyone changes their name and I personally believe it kinda ruins the rp 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