SA-MP Forums Archive
Ok How to make lIke this 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: Ok How to make lIke this timer? (/showthread.php?tid=607709)



Ok How to make lIke this timer? - Recardo - 22.05.2016

Hello Guys i want to know how to i can make timer like thiis ?? When this 4mintes Ended The Map Finish and change map
NOTE: Not Real Time or Time For Weather i mean Timer For Map

If Timer 5:00
4:59
4:58
4:57
Like this i mean


Re: Ok How to make lIke this timer? - Recardo - 22.05.2016

Did u understand what i mean ? Or u want Codes ?


Re: Ok How to make lIke this timer? - Jefff - 22.05.2016

On Top
pawn Код:
new MapTime = 300;

In one sec timer
pawn Код:
new str[20];
format(str,sizeof(str),"%02d:%02d",((MapTime/60)%60),(MapTime%60));
TextDrawSetString(YourTD, str);
if(--MapTime == 0)
{
    MapTime = 300;
    // Next Map
}