Check every 5s help
#2

Use a timer for it:
pawn Код:
// global:
new Something_Timer;

// in OnGameModeInit or OnFilterScriptInit (depending on your mode):
Something_Timer = SetTimer("OnSomethingUpdate", 5000, true);

// in OnGameModeExit or OnFilterScriptExit (the same as above):
KillTimer(Something_Timer);

forward OnSomethingUpdate();
public OnSomethingUpdate()
{
    // code to check for something..
}
You can replace "Something" with its name of it, I used it as example only.
Reply


Messages In This Thread
Check every 5s help - by jovapeba - 10.04.2014, 17:04
Re: Check every 5s help - by Konstantinos - 10.04.2014, 17:11
Re: Check every 5s help - by Patrick - 10.04.2014, 17:12
Re: Check every 5s help - by jovapeba - 10.04.2014, 17:31
Re: Check every 5s help - by Konstantinos - 10.04.2014, 17:38
Re: Check every 5s help - by jovapeba - 10.04.2014, 17:41
Re: Check every 5s help - by Konstantinos - 10.04.2014, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)