Raised This Month: $ Target: $400
 0% 

Request one name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
plazma
Senior Member
Join Date: Oct 2013
Old 01-10-2015 , 12:51   Re: Request one name
Reply With Quote #10

Solved!

PHP Code:
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) ) 
        { 
            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 ^"You can change your nick for only 3 times!^""get_user_userid(id));
              
set_user_info(idnameszOldName
              return 
FMRES_HANDLED
            
}
        } 
    } 
    return 
FMRES_IGNORED 

__________________
Free Palestine ♥

Last edited by plazma; 01-10-2015 at 12:51.
plazma 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 23:15.


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