Posts: 439
Threads: 62
Joined: Apr 2012
I have my timer set to 10 minutes but how would I make it count backwards?
pawn Код:
SetTimer("Message", 600000, false);
pawn Код:
forward Message();
public Message()
{
}
Posts: 13
Threads: 1
Joined: Mar 2011
Reputation:
0
There is no "Backward-timer", but you could use a "second" timer and let a global variable count backwards.
But the determination is the same as a normal timer.
Posts: 439
Threads: 62
Joined: Apr 2012
I want it so when the Gm starts. This is gonna be used for changing Gamemodes?
Posts: 439
Threads: 62
Joined: Apr 2012
Thanks Niko,
But How would I add this in a textdraw?
Minutes : seconds.
Posts: 439
Threads: 62
Joined: Apr 2012
There is the textdraw:
pawn Код:
Textdraw0 = TextDrawCreate(43.000000, 428.000000, "TimeHere");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
How would I make it count backwards on here?
Posts: 1,938
Threads: 16
Joined: Feb 2007
Reputation:
0
That is your only problem? At the end, your time will not run sync because you load a few extra lines before restarting. Put the timer on a repeat instead of recreating it.