Raised This Month: $ Target: $400
 0% 

How to forbid all users using cmd:"name" in their


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 09-12-2005 , 14:42  
Reply With Quote #3

Something like this (not tested fully):
Code:
public client_infochanged( id )
{
    new szNewName[32]
    new szOldName[32]

    get_user_info( id, "name", szNewName, 31 )
    get_user_name( id, szOldName, 31 )

    if( !equal( szNewName, szOldName ) )
        set_user_info( id, "name", szOldName )

    return PLUGIN_CONTINUE
}
or instead of this:
Code:
if( !equal( szNewName, szOldName ) )
        set_user_info( id, "name", szOldName )
you could try this:
Code:
if( !equal( szNewName, szOldName ) )
        return PLUGIN_HANDLED
xeroblood is offline
Send a message via MSN to xeroblood
 



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 14:34.


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