[Include] [INC] ShoSec - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] ShoSec (
/showthread.php?tid=79574)
[INC] ShoSec -
Ibanez - 29.05.2009
Here is a little include i made earlier, i got bored and it could really help newbies who are too stupid to understand milliseconds.. or they just cant be bothered figuring them out..
All this is, is a simple include to help you with timers and milliseconds.
Simply use Sho1 for 1 second, or Sho47 for 47 seconds, It has every second up to 2 minutes,
Then it goes up by 1 minute intervals to 10 minutes, then goes up by 5 minute intervals to 1 hour.
I may make it a lot more detailed if i have more time.
How to install it? Put 'ShoSec.inc' into your 'pawno\include' folder and add #include <ShoSec> at the top of your gamemode script. Instead of using milliseconds you can simply use Sho followed by a number in seconds.
Download:
Re: [INC] ShoSec -
Marciii - 29.05.2009
Oh jeah....a reeeeaaallly simple script...
But easier:
Code:
stock InMilliSec(sec) return (sec*1000);
Re: [INC] ShoSec -
grimmy149 - 29.05.2009
Usefull.
Re: [INC] ShoSec -
Weirdosport - 29.05.2009
The kind of people that don't understand milliseconds are the kind that don't understand how to use includes. The number of seconds this script provides is limited by the number of defines, and I think Marciii solution is a lot easier =/
But I guess you're trying to help the newer members, so nice try.
Re: [INC] ShoSec -
Tr1viUm - 29.05.2009
Easier & Faster.
#define StoMS(%0) %0*1000
#define MStoS(%0) %0/1000
Re: [INC] ShoSec -
Menace. - 29.05.2009
Nice work, I've always needed something like this