View Single Post
Author Message
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 01-01-2012 , 17:52   Does timers help to handle large checks?
Reply With Quote #1

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.0Timer_To_Handle_Checks);

__________________
MindeLT is offline
Send a message via Skype™ to MindeLT