AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Deny-ing name changes (https://forums.alliedmods.net/showthread.php?t=25511)

active-x 03-15-2006 11:38

Deny-ing name changes
 
Anyone know a code for this action?

capndurk 03-15-2006 13:01

Put this in the plugin, just as it is. If you need me to make a separate plugin and compile it for you, just let me know. This will only allow people to change the case (upper vs. lower) of the letters of their names.

Code:
public client_infochanged(id) {     new oldname[32]     new newname[32]         get_user_name(id, oldname, 31)     get_user_info(id, "name", newname, 31)         if(!equali(newname, oldname))     {         set_user_info(id, "name", oldname)     }         return PLUGIN_HANDLED }

active-x 03-15-2006 18:05

Thanks a lot for your answer :)


All times are GMT -4. The time now is 16:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.