timer code help
#1

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 ?
Reply
#2

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);
Reply
#3

sorry, but i am using time codes thts why i need list of minutes codes please post them here !
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)