Forum
CS2D Scripts Script with roundstartScript with roundstart
9 Antworten 1
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?
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.
2× editiert, zuletzt 27.06.15 09:11:30
1
2
3
4
2
3
4
function _start() started = true secafterspawn = 0 end
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
1