Other way to block changing name
Hello
I am making a Register System plugin and the beta version is almost reаdy. My problem is that when player change his name and hi is logged to block the name change. I found that and works properly PHP Code:
PHP Code:
My question: Is there any other way to block name changing, except client_infochanged and the fakemeta way with FM_ClientUserInfoChanged. Or how to do my code to work properly? |
Re: Other way to block changing name
The Fakemeta way is the best way that I've seen.
|
Re: Other way to block changing name
OK
here is it PHP Code:
From client_putinserver is_registered makes true, but that code makes it false and user can't login. |
Re: Other way to block changing name
You need to realize that this function is called several times before the user is connected completely so you can't supercede in those cases and you also will not have a proper/relevant value for is_logged[id] either.
In laymans terms, move the is_user_connected check so that when they aren't connected then no code gets executed and you return ignored. |
Re: Other way to block changing name
Both methods don't work with is_user_connected in the start of the function..
Here is it the fakemeta method PHP Code:
|
Re: Other way to block changing name
PHP Code:
|
Re: Other way to block changing name
Thanks
I changed it to PHP Code:
|
Re: Other way to block changing name
PHP Code:
|
| All times are GMT -4. The time now is 01:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.