timer code help - 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: timer code help (
/showthread.php?tid=316755)
timer code help -
Champ - 08.02.2012
can any one give me the list of all time codes ? like this ↓
pawn Код:
new RoundTime = 300000; //5 minutes & 3 Seconds
new RoundTime = 1200000; // Round time - 20 mins
new RoundTime = 900000; // Round time - 15 mins
new RoundTime = 600000; // Round time - 10 mins
new RoundTime = 300000; // Round time - 5 mins
new RoundTime = 120000; // Round time - 2 mins
new RoundTime = 60000; // Round time - 1 min
do you know any topic ?
Re: timer code help -
Jeffry - 08.02.2012
To get the time you want:
pawn Код:
new MyTime = GetMyTime(Minutes, Seconds, Milliseconds);
Example:
new MyTime = GetMyTime(1,30,0); //Time - 1:30 mins
Add this at bottom of your GM/FS:
pawn Код:
stock GetMyTime(mins, secs, ms) return (mins*60*1000 + secs*1000 + ms);
Re: timer code help -
Champ - 08.02.2012
sorry, but i am using time codes thts why i need list of minutes codes please post them here !
Re: timer code help -
[ABK]Antonio - 08.02.2012
Open a calculator...
I want 5 minutes in milliseconds...So I do 5 * 60 * 1,000 = 300,000
If I want 5 minutes 30 seconds....5 * 60 * 1,000 = 300,000 + 30,000 = 330,000
1,000 milliseconds = 1 second