Forum

> > CS2D > Scripts > Script with roundstart
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script with roundstart

9 replies
To the start Previous 1 Next To the start

old Script with roundstart

CaptainAmnesia
User Off Offline

Quote
Hello guys i tried to make a script but i dont have matms brain, im beginer scripter , so: from roundstart i wish to disable join tt for 30 secounds, from roundstart of course. Does anybody could help me? Please and thank u

old Re: Script with roundstart

VADemon
User Off Offline

Quote
Respawndelay isn't made for that case.

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?

old Re: Script with roundstart

Talented Doge
User Off Offline

Quote
cs2d cmd mp_postspawn will both disable counter-terrorists and terrorists.

1
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

old Re: Script with roundstart

lennon
User Off Offline

Quote
how about after 30 seconds after every roundstart disable join ct even for players connected behind 30 seconds ?

old Re: Script with roundstart

Talented Doge
User Off Offline

Quote
1
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 Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview