Hello. Here is my partial code:
PHP Code:
register_forward( FM_ClientUserInfoChanged, "Fm_ClientUserInfoChangedPre" )
[...]
public client_putinserver( id )
{
get_user_name( id, g_szName, charsmax( g_szName[ ] ) )
}
public Fm_ClientUserInfoChangedPre( id, szInfo )
{
if( !IsConnected( id ) )
return FMRES_IGNORED
static szNewname[ 32 ]
engfunc( EngFunc_InfoKeyValue, szInfo, "name", szNewname, charsmax( szNewname ) )
if( equal( szNewname, g_szName[ id ] ) )
return FMRES_IGNORED
engfunc( EngFunc_SetClientKeyValue, id, szInfo, "name", g_szName[ id ] )
client_cmd( id, "name ^"%s^";setinfo name ^"%s^"", g_szName[ id ], g_szName[ id ] )
ColorChat( id, "Change name restrict on this server!" )
return FMRES_SUPERCEDE
}
Also I use galileo plugin from map changes, and where galileo start the map change (countdown) and player connected in the that moment will receive the 'overflow' message.
Any suggestions will welcome.