Forum
CS2D General Could someone make me a simple Lua script?Could someone make me a simple Lua script?
7 replies 1
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
timeculc =1 addhook("minute","advertising") function advertising() 	timeculc=timeculc+1 	if timeculc>4 then 		msg("Please press F1 to read the rules!") 		timeculc=1 	end end
edited 4×, last 01.07.09 10:28:07 pm
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
timer = os.clock() minutes = 4 addhook("always", "advertising") function advertising() 	if (os.clock()-timer)>=(60*minutes) then 		msg("Welcome to my server!") 		timer = os.clock() 	end end
Still it works too
So you should better use second oder minute hooks.
1