I don't know why but I got a huge lag on round start.
When I remove the CustomForward, there ain't any lag at all. Did I do something wrong?
On LAN Server, the ping went from 0 to 1-2 but in HLDS, it went from ~30 to 120+ for few seconds.
PHP Code:
public fw_Player_Spawn(id)
{
if(!g_AllowInfection)
CurePlayer(id, 0)
}
public CurePlayer(victim, attacker)
{
ExecuteForward(g_Forwards[FW_USER_CURE_PRE], g_ForwardResult, victim, attacker)
if(g_ForwardResult >= PLUGIN_HANDLED)
return
if(!is_user_alive(victim))
return
UnSet_BitVar(g_IsZombie, victim)
ExecuteForward(g_Forwards[FW_USER_CURE_POST], g_ForwardResult, victim, attacker)
}
Edit: Even when the CustomForward hasn't been used in any plugin, the lag still occurred
Edit2: File attached.