It works, but i want points in name.
The problem happens if you try to put points in the menu caller (admin)
Code:
stock points_in_name(id)
{
new szName[32]
get_user_name(id, szName, charsmax(szName))
new iLen = strlen(szName)
/* Finds and removes "<####>" */
new iPos = iLen - 1
if( szName[iPos] == '>' )
{
for( new i = 1; i < 6; i++)
{
if( szName[iPos - i] == '<' )
{
iLen = iPos - i
szName[iLen] = '^0'
break
}
}
}
format(szName[iLen], charsmax(szName) - iLen, szName[iLen-1] == ' ' ? "<%d>" : " <%d>", points[id])
set_user_info(id, "name", szName)
}
public fw_ClientInfoChanged(id, buffer)
{
if(!is_user_connected(id) || !get_pcvar_num(g_CvarActive))
return FMRES_IGNORED
static OldName[32], NewName[32]
get_user_name(id, OldName, charsmax(OldName))
engfunc(EngFunc_InfoKeyValue, buffer, "name", NewName, charsmax(NewName))
if (equal(NewName, OldName))
return FMRES_IGNORED
return FMRES_SUPERCEDE
}
Edit:
It's the devil?
Im my other server with same amxx and metamod version works like a charm. And in test server not work -.-'