Hi,
does creating a timer to handle huge checks, for example, outside EventPlayerSpawn callback helps you to improve your server performance?
For example, instead of using huge checks in same events:
PHP Code:
public EventPlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast)
{
if(check)
if(check
if(check)
lot of code here
more code here
}
i would use
PHP Code:
public EventPlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast)
{
CreateTimer(0.0, Timer_To_Handle_Checks);
}
__________________