View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-10-2011 , 14:43   Re: max.character in nickname
Reply With Quote #7

PHP Code:
#include <amxmodx>

#define VERSION "0.0.1"
#define PLUGIN ""

#define MAX_NAME_LENGTH 15

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
}

public 
client_infochangedid )
{
    static 
szName[32]
    static const 
name[] = "name"
    
if( get_user_info(idnameszNamecharsmax(szName)) > MAX_NAME_LENGTH )
    {
        
szName[MAX_NAME_LENGTH] = EOS
        set_user_info
(idnameszName)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline