About infochanged:
you need something more reliable.
Here, an example from RankSystem by OciXCrom:
PHP Code:
public client_infochanged(id)
{
if(!is_user_connected(id))
{
return
}
static const szKey[] = "name"
static szNewName[MAX_NAME_LENGTH], szOldName[MAX_NAME_LENGTH]
get_user_info(id, szKey, szNewName, charsmax(szNewName))
get_user_name(id, szOldName, charsmax(szOldName))
if(!equal(szNewName, szOldName))
{
if(g_eSettings[SAVE_TYPE] == SAVE_NICKNAME)
{
use_vault(id, szOldName, VAULT_WRITE)
use_vault(id, szNewName, VAULT_READ)
update_hudinfo(id)
}
set_task(DELAY_ON_CHANGE, "update_vip_status", id)
}
}
About spawnpost:
i think you have to add a little delay, 0.5 or 1 second. (at the round start the game applies new names for dead players, if any)
And use get_user_name() instead.
__________________