26.07.2011, 16:07
(
Последний раз редактировалось Lookin; 27.07.2011 в 01:52.
Причина: rage
)
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 Does It Work?
Simple rather than use your usual
Your using a simpler method for example
See the easiness yet? if not take note of the
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
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
What Times are Currently Compatible?
.::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::.
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"
Simple rather than use your usual
Код:
SetTimer("iwantonesecond", 1000, true);
Код:
SetLTimer("iwantonesecond", LTimer1s, true);
Код:
LTimer1s
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 instead of milliseconds Use LTimer[number][timeformat][repeat]
Again for example
Код:
SetLTimer("iwantonesecond", LTimer1s, true); //true being repeat false being the opposite
Код:
.::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
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::.