Raised This Month: $ Target: $400
 0% 

Request one name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-09-2015 , 15:37   Re: Request one name
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define VERSION "0.1.0"

public plugin_init()
{
    
register_plugin("One Name"VERSION"ConnorMcLeod")
    
register_forward(FM_ClientUserInfoChanged"ClientUserInfoChanged")
}

public 
ClientUserInfoChanged(id)
{
    static const 
name[] = "name"
    
static szOldName[32], szNewName[32]
    
pev(idpev_netnameszOldNamecharsmax(szOldName))
    if( 
szOldName[0] )
    {
        
get_user_info(idnameszNewNamecharsmax(szNewName))
        if( !
equal(szOldNameszNewName) )
        {
            
set_user_info(idnameszOldName)
            
client_print(idprint_chat" Put your message here" )
            return 
FMRES_HANDLED
        
}
    }
    return 
FMRES_IGNORED 

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Reply



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


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