If you don't want to use fakemeta, you can try this, should work (it seems to work but i haven't tested it enough).
PHP Code:
#include <amxmodx>
#define MAX_PLAYERS 32
new bool:g_bPlayerNonSpawnEvent[MAX_PLAYERS+1]
new bool:g_bJustTiggeredFullupdate[MAX_PLAYERS+1]
new g_iMaxPlayers
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
register_event("ResetHUD", "Event_ResetHUD", "b")
register_event("TextMsg", "Event_TextMsg_GameWillRestartIn", "a", "2=#Game_will_restart_in")
register_clcmd("fullupdate", "ClientCommand_fullupdate")
g_iMaxPlayers = get_maxplayers()
}
public Event_TextMsg_GameWillRestartIn()
{
static id
for(id = 1; id <= g_iMaxPlayers; ++id)
if( is_user_alive(id) )
g_bPlayerNonSpawnEvent[id] = true
}
public ClientCommand_fullupdate(id)
{
g_bPlayerNonSpawnEvent[id] = true
g_bJustTiggeredFullupdate[id] = true
}
public client_command(id)
{
if(g_bJustTiggeredFullupdate[id])
{
g_bPlayerNonSpawnEvent[id] = false
g_bJustTiggeredFullupdate[id] = false
}
}
public Event_ResetHUD(id)
{
if(!is_user_alive(id))
return
if(g_bPlayerNonSpawnEvent[id])
{
g_bPlayerNonSpawnEvent[id] = false
return
}
PlayerSpawn(id)
}
PlayerSpawn(id)
{
// do stuff here
}
__________________