YSI Timer and Foreach
#3

PHP код:
timer CallTimer[1000]()
{
    
Works only if its called Scriptwise.
    
blablabla
}

task FullTimeTimer[1000]()
{
    
Works when the server is up and keeps running
    
foreach
    {
        
blablabla
    
}
}

ptask OnlinePlayerTimer[1000](playerid)
{
    
Works when a player connects and keeps running till he logs
}

//How timer[]() works.

new Timer:TimerID;
CMD:lol(playeridparams[])
{
    
TimerID=repeat CallTimer();
    return 
1;
}

CMD:endlol(playeridparams[])
{
    
stop TimerID;
    return 
1;

Refer y_timer again: https://sampforum.blast.hk/showthread.php?tid=182948
Reply


Messages In This Thread
YSI Timer and Foreach - by Eyce - 24.12.2014, 22:29
Re: YSI Timer and Foreach - by Eyce - 24.12.2014, 23:49
Re: YSI Timer and Foreach - by Mic_H - 25.12.2014, 00:46
Re: YSI Timer and Foreach - by Eyce - 25.12.2014, 01:48
Re: YSI Timer and Foreach - by Pottus - 25.12.2014, 02:02
Re: YSI Timer and Foreach - by Eyce - 25.12.2014, 02:09
Re: YSI Timer and Foreach - by Ahmad45123 - 25.12.2014, 09:32
Re: YSI Timer and Foreach - by Eyce - 26.12.2014, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)