http://prntscr.com/41lwui
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Script Restart Round Every 30 Minutes.
18 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
http://prntscr.com/41lwui
1
2
3
4
5
2
3
4
5
addhook("startround","whatever") function whatever() 	freetimer("parse","restart") 	timer(1800000,"parse","restart") end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
res=0 addhook("minute","_rest") function _rest() res=res+1 	if res==30 then 	parse("restart") 	res=0 	end end
![user](img/i_friend.png)
![user](img/i_friend.png)
Yes I saw the more I wanted with an indicator of decreasing screen!
![](img/smiles/thoughtfully2.gif)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
min = 30 sec = 0 posX = 240 -- change to wherever you want in screen posY = 240 -- same thing for Y axis value addhook("second","whatever") function whatever() 	if sec == 0 then 		sec = 59 		if min > 0 then 			min = min - 1 		elseif min == 0 then 			parse("restart") 			min = 30 		end 	end	 	parse('hudtxt 0 "\169255255255Time until restart: "..min..":"..sec..'" "..posX.." "..posY.." 0') end addhook("startround","alsowhatever") function alsowhatever() 	min = 30 	sec = 0 end
Note that I was too lazy to make it perfect. When seconds are below 10, you will see a single number.
In other words
14:11
14:10
14:9
not
14:11
14:10
14:09
Anyone is free to fix it up.
![user](img/i_friend.png)
![](img/smiles/wink.gif)
![cs2d cmd](img/i_codehelp.png)
1
mp_timelimit 30
![user](img/i_friend.png)
LUA ERROR: sys/lua/construa.lua:17: ')' expected near '" "'
![user](img/i_friend.png)
![cs2d cmd](img/i_codehelp.png)
![user](img/i_friend.png)
The more I use deathmatch gamemode then it has to be scripted !
@TimeQuesT
The time is frozen.
Image: http://prntscr.com/41n622
![user](img/i_friend.png)
30 frozen, seconds from 61.
Imagem: http://prntscr.com/41nasu
1
if sec == 0 then
1
if sec <= 0 then
![user](img/i_friend.png)
Working perfectly. If I want to add or remove minutes as I do?
1
lua min = YourNumberHere;
And for seconds
1
lua sec = YourNumberHere;
Depending if you're using a dedicated you also have to add rcon infront of the command. Like:
1
rcon lua min = YourNumberHere;
![user](img/i_friend.png)
I thank everyone for the help
![](img/smiles/heart.gif)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)