PDA

View Full Version : Timers


Pro_Drifter
29/12/2012, 06:37 AM
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

JavoDiaz
29/12/2012, 06:54 AM
I don't understand well the first part, but if you want a clock you can create a textdraw and use this code:

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 ;)

Pro_Drifter
29/12/2012, 07:06 AM
I don't understand well the first part, but if you want a clock you can create a textdraw and use this code:

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

[HK]Ryder[AN]
29/12/2012, 07:08 AM
See Kitten's Tutorial Here - http://forum.sa-mp.com/showthread.php?t=269336

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