tutorials about timers???
#5

Arite here's an example:


At top of the script
Код:
new timertime=1000; //1 second
new timer;
Anywhere:
Код:
forward function();

public function()
{
SendClientMessageToAll(0xFF0000AA,"Hello!");
return 1;
}
Now OnPlayerSpawn or anywhere:

Код:
timer=SetTimer("function",time,1); // 1 for repeating and 0 for non-repeating
What this will do is Send client a message every 1 second "Hello".

Hope this helps
Reply


Messages In This Thread
tutorials about timers??? - by pmk1 - 21.05.2010, 15:44
Re: tutorials about timers??? - by DJDhan - 21.05.2010, 16:02
Re: tutorials about timers??? - by ViruZZzZ_ChiLLL - 21.05.2010, 16:04
Re: tutorials about timers??? - by pmk1 - 21.05.2010, 16:24
Re: tutorials about timers??? - by DJDhan - 21.05.2010, 16:35
Re: tutorials about timers??? - by pmk1 - 21.05.2010, 16:37
Re: tutorials about timers??? - by DJDhan - 21.05.2010, 16:42
Re: tutorials about timers??? - by pmk1 - 21.05.2010, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)