[HELP] Timer
#1

Hello, I don't know where the Filterscript Request Thread is, but I've got a question for you.

Can anyone make for me a textdraw countdown from 10 minuts to 0 minuts? Then it should repeat.
It should be a SetTimer anyway, I don't want a SetTimerEx...
I can make the textdraws, thanks!
Reply
#2

SetTimer("Function", 60000, 1); // KillTimer should be used as well
public Function()
{
minutes--;
// Text draw code with minutes here, or
if(minutes==0){
// here if you don't display 0 minutes.
minutes=10;}
SetTimer("Function", 60000, 0); // Can be stopped here, by making if statement, on for example value to indicate statuss of countdown or the whole game
}
Reply
#3

hmm I don't really get that...
Can you give me an example? please? Or a full filterscript. I can change the coordinats, thanks!
Reply
#4

https://sampforum.blast.hk/showthread.php?pid=918489#pid918489
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)