Raised This Month: $ Target: $400
 0% 

Request one name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 01-10-2015 , 11:39   Re: Request one name
Reply With Quote #1

PHP Code:
public ClientUserInfoChanged(id

    static const 
name[] = "name" 
    
static szOldName[32], szNewName[32]
    new 
userid get_user_useridid );    
    
pev(idpev_netnameszOldNamecharsmax(szOldName)) 
    if( 
szOldName[0] ) 
    { 
        
get_user_info(idnameszNewNamecharsmax(szNewName)) 
        if( !
equal(szOldNameszNewName) ) 
        { 
            if(
contor[id] < 3)
            {
             ++
contor[id];
            }
            else
            { 
              
client_print(idprint_chat ,"[NICK] You can change your nick for only 3 times!");
              
server_cmd"kick #%d ^"Stop Changing the name!^""userid );
              return 
FMRES_HANDLED
            
}
        } 
    } 
    return 
FMRES_IGNORED 

__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
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