Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Script with roundstart
9 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
![user](img/i_friend.png)
![cs2d cmd](img/i_codehelp.png)
Before I start writing an article-long answer, do you want to try to do it yourself or do you want a ready-to-use script?
![cs2d cmd](img/i_codehelp.png)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
secafterspawn = 0 started = false addhook("second", "_sec") addhook("startround", "_start") addhook("team", "_team") addhook("endround", "_end") function _end() 	if started then started = false end end function _sec() 	if started and secafterspawn < 30 then secafterspawn = secafterspawn + 1 end end function _start() 	started = true 	secafterspawn = 0 end function _team(p, t) 	if started and secafterspawn == 30 and t == 1 then msg2(p, "You can't join now!") return 1 end end
I think this will work.
edited 2×, last 27.06.15 09:11:30 am
![user](img/i_friend.png)
1
2
3
4
2
3
4
function _start() started = true secafterspawn = 0 end
![user](img/i_friend.png)
![](img/smiles/ugly.gif)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
secafterspawn = 0 started = false addhook("second", "_sec") addhook("startround", "_start") addhook("team", "_team") addhook("endround", "_end") function _end() if started then started = false end end function _sec() if started and secafterspawn < 30 then secafterspawn = secafterspawn + 1 end end function _start() started = true secafterspawn = 0 end function _team(p, t) if started and secafterspawn == 30 and t == 2 then msg2(p, "You can't join now!") return 1 end end
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)