SA-MP Forums Archive
Timers - 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: Timers (/showthread.php?tid=403120)



Timers - Pro_Drifter - 29.12.2012

Guys i have a file with Mini Missions
but no count like rcon command restart
each time to get the next map so i wanna add one
I wanna know the code
and how i can add a CLOCK somewhere in the script so each player to see
how much time he have

Thank you +Rep


Re: Timers - JavoDiaz - 29.12.2012

I don't understand well the first part, but if you want a clock you can create a textdraw and use this code:

pawn Код:
new hour, minute, second, string[8];
gettime(hour, minute, second);
format(string, 32, "%d:%d:%d", hour, minute, second);
PlayerTextDrawSetString(YourPlayerTD, string);
PlayerTextDrawShow(playerid, YourPlayerTD);
There is a fast code, you can do it better


Re: Timers - Pro_Drifter - 29.12.2012

Quote:
Originally Posted by JavoDiaz
Посмотреть сообщение
I don't understand well the first part, but if you want a clock you can create a textdraw and use this code:

pawn Код:
new hour, minute, second, string[8];
gettime(hour, minute, second);
format(string, 32, "%d:%d:%d", hour, minute, second);
PlayerTextDrawSetString(YourPlayerTD, string);
PlayerTextDrawShow(playerid, YourPlayerTD);
There is a fast code, you can do it better
I mean that i have Mini Missions Server
so i wanna make a time of 3 minutes
so when these minutes gone i want to make automatically restart
and get next map(without admin )
thats i want
How to put some minutes in each map


Re: Timers - [HK]Ryder[AN] - 29.12.2012

See Kitten's Tutorial Here - https://sampforum.blast.hk/showthread.php?tid=269336

Learn to use "Search" - http://forum.sa-mp.com/search.php