Both methods don't work with is_user_connected in the start of the function..
Here is it the fakemeta method
PHP Code:
public NoNameChange(id, buffer)
{
if(!is_user_connected(id))
return FMRES_IGNORED
if(is_logged[id])
{
static name[32], val[32];
get_user_name(id, name, sizeof name - 1)
engfunc(EngFunc_InfoKeyValue, buffer, "name", val, sizeof val - 1)
if(equal(val, name))
return FMRES_IGNORED
engfunc(EngFunc_SetClientKeyValue, id, buffer, "name", name)
client_printcolor(id, "%L", LANG_SERVER, "NAME_CHANGE", prefix)
}
else if(is_registerd[id])
{
is_registerd[id] = false
}
return FMRES_SUPERCEDE
}
Is there any other way to find when player is changing his name except client_infochanged and the fakemeta userinfo changed but only for name change?