Dateien

> > CS2D > Lua Scripts > Timer2 - easy timer!
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Timer2 - easy timer! >

6 Kommentare479 b, 426 Downloads

alt 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
Zugelassen von Yates

Download Download

479 b, 426 Downloads

Kommentare

6 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Paulo49
User Off Offline

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

alt

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.

alt

xsiN
User Off Offline

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

Like and download
Ich mag es!

alt

Mami Tomoe
User Off Offline

Looks useful
Ich mag es!

alt

RedizGaming
GAME BANNED Off Offline

Rlly i like this!
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang