This extension allows you to change a players name [via SetClientInfo(client, "name", "This Is My New Name")]
Player name change events will NOT be fired at all as the function that calls the name change event is detoured and blocked. I will at some point soon create a plugin that will still fire the event as well as not block the function if the name change wasnt done by sm_rename command.
The forward for the plugins is already added.
PHP Code:
forward Action:OnChangePlayerName(client, String:name[], String:oldname[])
The extension by default will block the function!! This is so that only the extension is required to have the name change capability. If you dont want the function blocked in a plugin you MUST return Plugin_Continue.
Post any bugs and i will try to fix them as quickly as i can.
Source code is in the namechange_source.zip
Server owners ONLY need namechange.zip
THANKS:
psychonic for answering all of my questions and pointing out tf2 allowed server to make name changes.