Thread: [Solved] Add XP/skill to players name
View Single Post
shauli
Member
Join Date: Jun 2018
Old 01-18-2019 , 10:36   Re: Can't figure this out :)
Reply With Quote #13

Try this one maybe:
PHP Code:
formatNameidstring[ ], len )
{
    new 
pos get_user_nameidstringlen ), temp posskill;
    
get_user_skillidskill );

    if( 
stringpos ] == ']' )
        while( 
pos && string[ --pos ] != '[' ) { }
    
    if( 
pos != && pos != temp )
        return 
formatexstringpos ], len pos"[%d]"skill );
    else
        return 
formatexstringlen"%.22s [%d]"stringskill );
}

public 
FwdPlayerSpawnPostid )
{
    new 
szName32 ];
    
formatNameidszNamecharsmaxszName ) );

    
set_user_infoid "name"szName );

shauli is offline