Raised This Month: $ Target: $400
 0% 

Forbid name changing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mevrael
Junior Member
Join Date: Jul 2008
Location: Riga, Latvia
Old 01-30-2010 , 07:31   Forbid name changing
Reply With Quote #1

Is it possible to forbid name changing in game?
Mevrael is offline
Send a message via ICQ to Mevrael
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-30-2010 , 09:20   Re: Forbid name changing
Reply With Quote #2

Quote:
Originally Posted by Mevrael View Post
Is it possible to forbid name changing in game?
hook for clcmd name and return PLUGIN_HANDLED
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2010 , 12:25   Re: Forbid name changing
Reply With Quote #3

Quote:
Originally Posted by joropito View Post
hook for clcmd name and return PLUGIN_HANDLED
I'm not sure this commande is sent to the server (may be it's a cvar ?).
Anyway, this has been done many times, make a search through forums.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-30-2010 , 17:31   Re: Forbid name changing
Reply With Quote #4

fakemeta+infochanged+fmres_supercede or something like that.
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-30-2010 , 21:18   Re: Forbid name changing
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
fakemeta+infochanged+fmres_supercede or something like that.
Quote:
Originally Posted by fysiks
PHP Code:
register_forward(FM_ClientUserInfoChanged"fwClientUserInfoChanged")
}
    
public 
fwClientUserInfoChanged(idbuffer)
{
    if( 
is_user_connected(id) )
    {
        static 
name[32]
        static 
val[32]
        
get_user_name(idname31)
        
engfunc(EngFunc_InfoKeyValuebuffer"name"val31)
        
        if (
equal(valname))
            return 
FMRES_IGNORED
        
        engfunc
(EngFunc_SetClientKeyValueidbuffer"name"name)
        
        return 
FMRES_SUPERCEDE
    
}
    
    return 
FMRES_IGNORED

__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:19.


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