Raised This Month: $ Target: $400
 0% 

Block name command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 08-20-2010 , 07:23   Re: Block name command
Reply With Quote #2

First of all http://forums.alliedmods.net/showthread.php?t=134274
Then
PHP Code:
#include < amxmodx >
#include < amxmisc >

public plugin_init( )
{
    
register_messageget_user_msgid"SayText" ), "MessageSayText" );
}

public 
client_infochangedclient )
{
    static const 
name[ ] = "name";
    
    static 
szNewName32 ], szOldName32 ];
    
get_user_infoclientnameszNewName31 );
    
get_user_nameclientszOldName31 );
    
    if( !
equalszNewNameszOldName ) )
    {
        
set_user_infoclientnameszOldName );
    }
}

public 
MessageSayTextiMsgIdiDestiReceiver )
{
    static const 
Cstrike_Name_Change[ ] = "#Cstrike_Name_Change";
    
    static 
szMessagesizeofCstrike_Name_Change ) + ];
    
get_msg_arg_string2szMessagesizeofszMessage ) - );
    
    return 
equalszMessageCstrike_Name_Change ) ? PLUGIN_HANDLED PLUGIN_CONTINUE;

SpeeDeeR 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 21:53.


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