Raised This Month: $ Target: $400
 0% 

Block name change create sz_Getspace: overflow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-25-2011 , 14:30   Re: Block name change create sz_Getspace: overflow
Reply With Quote #1

Nope, not blocked.

Edit:

Here is worked version:
PHP Code:
#include < amxmodx >

public plugin_init()
{
    
register_messageget_user_msgid"SayText" ) , "Message_SayText" )
    
    
register_clcmd"test""test" )
}

public 
testid )
{
    new 
szName32 ]
    
get_user_nameidszNamecharsmaxszName ) )

    
console_printid"Name: %s"szName )
}

public 
client_infochangedid )
{
    if( !
is_user_connectedid ) )
        return 
PLUGIN_CONTINUE
        
    
static szNewName32 ]
    
get_user_infoid"name"szNewNamecharsmaxszNewName ) )
    
    static 
szName32 ]
    
get_user_nameidszNamecharsmaxszName ) )
    
    if( !
equalszNewNameszName ) )
    {    
        
set_user_infoid"name"szName )
    
        
client_printid3"Change name restrict on this server!" )
    
        return 
PLUGIN_HANDLED
    
}
    
    return 
PLUGIN_CONTINUE
}

public 
Message_SayTextiMsgIdiMsgDestid )
{
    static 
szMsg64 ]
    
get_msg_arg_string2szMsgcharsmaxszMsg ) )
    
    if( 
equalszMsg"#Cstrike_Name_Change" ) != -|| equalszMsg"#Name_change_at_respawn" ) != -)
        return 
PLUGIN_HANDLED
        
    
return PLUGIN_CONTINUE

Not best method, but worked during the test on server.

Last edited by dFF; 07-25-2011 at 14:39.
dFF 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 01:08.


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