Raised This Month: $51 Target: $400
 12% 

Block name command


Post New Thread Reply   
 
Thread Tools Display Modes
Tinchoto
Junior Member
Join Date: Feb 2011
Location: Lanus ARGENTINA
Old 03-09-2011 , 23:51   Re: Block name command
Reply With Quote #11

Lucas as serious for an active role cvar
Tinchoto is offline
Send a message via ICQ to Tinchoto Send a message via AIM to Tinchoto Send a message via MSN to Tinchoto Send a message via Yahoo to Tinchoto Send a message via Skype™ to Tinchoto
capet1nha
Junior Member
Join Date: Nov 2010
Old 10-14-2011 , 15:15   Re: Block name command
Reply With Quote #12

help!
is not changing the name of the player when you connect.
PHP Code:

else
    {
        new 
RealName[36],UserName[36];
        
get_user_name(Client,UserName,charsmax(UserName));

        
SQL_ReadResult(Query,SQL_FieldNameToNum(Query,"real_name"),RealName,charsmax(RealName));
        
        if(!
equal(RealName,UserName))
        {
            
client_cmd(Client,"name ^"%s^"",RealName);
            return 
PLUGIN_HANDLED;
        }
    }
    
SQL_FreeHandle(Query);
    return 
PLUGIN_HANDLED;
}
public 
Fwd_ClientInfoChanged(idbuffer)
    {
        if (!
is_user_connected(id))
        return 
FMRES_IGNORED;
        
        static 
val[32];
        static 
RealName[33];
        
get_user_name(idRealNamecharsmax(RealName));
        
        
engfunc(EngFunc_InfoKeyValuebuffer"name"valsizeof val 1);
        
        if(
equal(valRealName))
        return 
FMRES_IGNORED;
        
        
engfunc(EngFunc_SetClientKeyValueidbuffer"name"RealName);
        
        
client_cmd(id"name ^"%s^"; setinfo name ^"%s^"",RealNameRealName);
        
        
        
        return 
FMRES_SUPERCEDE;

capet1nha 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 17:04.


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