Raised This Month: $ Target: $400
 0% 

Request one name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 01-10-2015 , 11:08   Re: Request one name
Reply With Quote #1

Can make anyone this for me when player change name on 3 time get kicked from server ?

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!");
              
set_user_info(idnameszOldName
              return 
FMRES_HANDLED
            
}
        } 
    } 
    return 
FMRES_IGNORED 

__________________
Free Palestine ♥
plazma 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