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:05   Re: Block name change create sz_Getspace: overflow
Reply With Quote #1

Ok, tried without fakemeta:

PHP Code:
#include < amxmodx >

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

name blocked, but not properly (see image)


And, after first spawn I received message: "Change name restrict on this server!"
dFF is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-25-2011 , 14:25   Re: Block name change create sz_Getspace: overflow
Reply With Quote #2

Try :

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin("Block Name"VERSION"ConnorMcLeod");

    
register_forward(FM_SetClientKeyValue"SetClientKeyValue");
}

public 
SetClientKeyValue(id, const szInfoBuffer[], const szKey[]/*, const szValue[]*/)
{
    if( 
is_user_connected(id) && equal(szKey"name") )
    {
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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