Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Could someone make me a simple Lua script?
7 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
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
4× editiert, zuletzt 01.07.09 22:28:07
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
![√](img/ok.gif)
So you should better use second oder minute hooks.
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)