[Include] LTimers (Making Timers Easy!)
#1

This Is my first Include and is still in development so please go easy on me xD

IM AWARE ITS NOT THE BEST OF THINGS AT THIS CURRENT MOMENT AS STATED ABOVE ^^^ ITS STILL IN DEVELOPMENT SO PLEASE DONT REMIND ME THAT THE FACT ITS NOT MUCH!


now what im trying to create is an include that ofc makes timers better one thing im currently working on is making a function that allows one timer for multiple functions therefor reducing the amount of timers used in your script also reducing usage of resources.
now i havnt worked it out yet and i know im not the best of scripters but im trying none the least.
with this include currently its not the best but i have had a few people say its useful already now that i had explained what im trying to make

LScripting Productions Presents LTimers
Version [0.1]



Well Its Here [FINALLY] An include that can benefit scripters of all levels, shapes and sizes!
LTimers is a very simple yet effective way to SetTimers without the hassle of working out milliseconds or goggling
Код:
"how many milliseconds is 1 second"
How Does It Work?

Simple rather than use your usual
Код:
SetTimer("iwantonesecond", 1000, true);
Your using a simpler method for example
Код:
SetLTimer("iwantonesecond", LTimer1s, true);
See the easiness yet? if not take note of the
Код:
LTimer1s
1s = 1 second now im pretty sure i would rather remember 1s, 1m, 1h rather than 1000, 60000, 3600000 any day!

How To Install?

First You need to do the Obvious And download .::Link--> LTimers.inc <--link::.
And Place It In You /pawno/include Folder
Then
At the top of your script make sure you have
Код:
#include <a_samp>
#include <LTimers>
And Use As You Would A normal timer But using SetLTimer rather than SetTimer
And instead of milliseconds Use LTimer[number][timeformat][repeat]
Again for example
Код:
SetLTimer("iwantonesecond", LTimer1s, true); //true being repeat false being the opposite
What Times are Currently Compatible?
Код:
.::Legend::.
s = seconds
m = minutes
h = hours
Код:
LTimer1s 
LTimer2s
LTimer3s
LTimer4s
LTimer5s
LTimer10s
LTimer15s
LTimer20s
LTimer30s
LTimer1m
LTimer2m
LTimer3m
LTimer4m
LTimer5m
LTimer10m
LTimer15m
LTimer20m
LTimer30m
LTimer1h
LTimer2h
LTimer3h
LTimer4h
LTimer5h
LTimer10h
LTimer12h	
LTimer24h
.::Credits::.
Lookin (me) - Creating LTimers
Copyright © 2010 - 2011 LScripting Productions

Also

[L3th4l] aka [U]214 - helping me out with a problem and for being a legend
U-Clan.Com

.::Please Do Not Remove The Credits::.


Reply


Messages In This Thread
LTimers (Making Timers Easy!) - by Lookin - 26.07.2011, 16:07
Re: LTimers (Making Timers Easy!) - by Kaperstone - 26.07.2011, 16:45
Re: LTimers (Making Timers Easy!) - by serman - 26.07.2011, 16:46
Re: LTimers (Making Timers Easy!) - by Lookin - 26.07.2011, 16:48
AW: LTimers (Making Timers Easy!) - by Gomma - 26.07.2011, 16:54
Re: LTimers (Making Timers Easy!) - by Lookin - 26.07.2011, 17:05
Re: LTimers (Making Timers Easy!) - by Zh3r0 - 26.07.2011, 17:23
Re: LTimers (Making Timers Easy!) - by Lookin - 26.07.2011, 17:28
Re: LTimers (Making Timers Easy!) - by Jon_De - 26.07.2011, 17:29
Re: LTimers (Making Timers Easy!) - by Lookin - 26.07.2011, 17:31
Re: LTimers (Making Timers Easy!) - by Firzendxiw - 26.07.2011, 17:50
Re: LTimers (Making Timers Easy!) - by Double-O-Seven - 26.07.2011, 17:58
Re: LTimers (Making Timers Easy!) - by wups - 26.07.2011, 18:02
Re: LTimers (Making Timers Easy!) - by PrawkC - 26.07.2011, 18:20
Re: LTimers (Making Timers Easy!) - by Y_Less - 26.07.2011, 19:01
Re: LTimers (Making Timers Easy!) - by Lookin - 27.07.2011, 01:50
Re: LTimers (Making Timers Easy!) - by AirKite - 27.07.2011, 03:34
Re: LTimers (Making Timers Easy!) - by PrawkC - 27.07.2011, 04:54
Re: LTimers (Making Timers Easy!) - by Lorenc_ - 27.07.2011, 06:30
Re: LTimers (Making Timers Easy!) - by Kwarde - 27.07.2011, 08:05
Re: LTimers (Making Timers Easy!) - by Lookin - 27.07.2011, 11:02
Re: LTimers (Making Timers Easy!) - by Zh3r0 - 27.07.2011, 14:04
Re: LTimers (Making Timers Easy!) - by OUL - 27.07.2011, 14:20
Re: LTimers (Making Timers Easy!) - by Lookin - 27.07.2011, 16:00

Forum Jump:


Users browsing this thread: 4 Guest(s)