SA-MP Forums Archive
[HELP]6 mins timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]6 mins timer (/showthread.php?tid=408723)



[HELP]6 mins timer - Ryder1997 - 19.01.2013

As the thread say,i need timer for my TDM server for races.
So i was looking for timer [FS] everywhere and.... nothing.
Can somebody help me and send me codes?




Re: [HELP]6 mins timer - Black Wolf - 19.01.2013

SetTimer("RaceTimerName", 100000*6, false);

Use it.


Re: [HELP]6 mins timer - [XST]O_x - 19.01.2013

https://sampwiki.blast.hk/wiki/SetTimer

pawn Код:
forward sixmin();

public OnGameModeInit()
{
    SetTimer("sixmin", 6 * 60 * 1000, false);
}

public sixmin()
{
    //Done.
}



Re: [HELP]6 mins timer - Ryder1997 - 19.01.2013

thank you but i also want texdraw to shot it.
any help?



Re: [HELP]6 mins timer - DaRk_RaiN - 19.01.2013

pawn Код:
SetTimer("RTimer", 1000*60*6, 0);
pawn Код:
forward RTimer();
public RTimer()
{
//Put your code here.
}
For the TextDraw if you mean clickable ones use
OnPlayerClickTextDraw