Files

> > CS2D > Lua Scripts > Timer2 - easy timer!
Files overviewCS2D overviewLua Scripts overview

English Timer2 - easy timer! >

6 comments479 b, 443 Downloads

old Timer2 - easy timer!

EnderCrypt
User Off Offline

i was bored so.. might aswell upload something?

this lua doesent actually do anything, it just makes timer easier by giving you an extra function

originally you use
1
2
3
4
timer(1000,"myFunction",id)
function myFunction(id)
	id = tonumber(id)
end

this is messy, only allows 1 variable that ALSO must be a string, nothing else, making usage VERY limited

so instead i created this!

1
2
3
timer2(1000,{id,data},function(id,data)

end)

you dont need another function, you just send it as argument into timer2, secondly multiple arguments of ANY types can be sent through

i used this hundreds of times, and i hope it will server you all developers well, if you got questions, ask me

ps. dont forget to dofile it
Approved by Yates

Download Download

479 b, 443 Downloads

Comments

6 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Paulo49
User Off Offline

timer = 0
addhook("second","timer")
function timer(id)
timer = timer +1
end

old

GeoB99
Moderator Off Offline

That's quite useful, good job though I won't gonna leave a like because I don't have any use of it at the moment.

old

xsiN
User Off Offline

Good script, it really helped me develop my newest script (secret :P)

Like and download
I like it!

old

Mami Tomoe
User Off Offline

Looks useful
I like it!

old

RedizGaming
GAME BANNED Off Offline

Rlly i like this!
I like it!
To the start Previous 1 Next To the start