Raised This Month: $ Target: $400
 0% 

Getting Name in namechange


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-03-2009 , 08:05   Re: Getting Name in namechange
Reply With Quote #4

If i understand you right, you want to block name change
PHP Code:
register_forwardFM_ClientUserInfoChanged"FwdClientUserInfoChanged" );

public 
FwdClientUserInfoChangedidszBuffer ) {
    new 
szName32 ], szOldName32 ];
    
get_user_nameidszNamecharsmaxszName ) );
    
engfuncEngFunc_InfoKeyValueszBuffer"name"szOldNamecharsmaxszOldName ) );
    
    if( 
equaliszOldNameszName ) )
        return 
FMRES_IGNORED;
    
    
engfuncEngFunc_SetClientKeyValueidszBuffer"name"szName );
    
    return 
FMRES_SUPERCEDE;

__________________
xPaw is offline
 



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 15:26.


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