Raised This Month: $ Target: $400
 0% 

Getting Name in namechange


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 07-03-2009 , 07:25   Re: Getting Name in namechange
Reply With Quote #2

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_message(get_user_msgid("SayText"), "msg_namechange")
}

public 
msg_namechange()
{
    new 
msg[22];
    
get_msg_arg_string(2msgsizeof (msg));

    if (
equal(sz_msg"#Cstrike_Name_Change"))
    {
        return 
1;
    }

    return 
0
}

public 
client_infochanged(id)
{
    new 
oldnick[32];
    new 
newnick[32];

    
get_user_name(idoldnicksizeof (oldnick));
    
get_user_info(id"name"newnicksizeof (newnick));


Last edited by TheRadiance; 07-03-2009 at 07:30.
TheRadiance is offline
Send a message via ICQ to TheRadiance
 



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