Raised This Month: $ Target: $400
 0% 

Block name command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ghostdlr
Senior Member
Join Date: Aug 2010
Old 08-20-2010 , 08:07   Re: Block name command
Reply With Quote #6

Quote:
Originally Posted by lucas_7_94 View Post
PHP Code:
register_forward(FM_ClientUserInfoChanged"Fwd_ClientInfoChanged")

[ ... ]



public 
Fwd_ClientInfoChanged(idbuffer)
{
    if (!
is_user_connected(id))
        return 
FMRES_IGNORED;
    
    static 
val[32];
static 
name[33]
get_user_name(idnamecharsmax(name))
    
    
engfunc(EngFunc_InfoKeyValuebuffer"name"valsizeof val 1);
    
    if(
equal(valname))
        return 
FMRES_IGNORED;

    
engfunc(EngFunc_SetClientKeyValueidbuffer"name"name);
    
    
client_cmd(id"name ^"%s^"; setinfo name ^"%s^"",namename);
    
    
    
    return 
FMRES_SUPERCEDE;

Do I need a particular library to compile this ?
ghostdlr 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