Forum
CS2D Scripts Death zone.Death zone.
36 repliesIf you want a script, searc ''safe zone'' and change invulnerability into kill command.
Can i make a wall, that be deleted after 15 seconds from the round start?
Like so:
Trigger_Start:
Name:
Triggers: DelayTrigger
Trigger_Delay:
Name: DelayTrigger
Triggers: MyWall
Dyn_Wall:
Name: MyWall
Triggers:
Or if you would like to do it with lua, just record the position of where you wall is and then use objectdamage to destroy it after a while. You can use a timer for that.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local TotalSeconds = 0 addhook("second","wow") function wow() 	if TotalSeconds < 15 then 		TotalSeconds = TotalSeconds + 1 		parse("hudtxt 0 "\169255255255".. 15-TotalSeconds.." until wall opens!" 300 30 1") 	elseif TotalSeconds == 15 then 		parse("trigger MyWall") 		parse("hudtxt 0") 	end end addhook("startround","owo") function owo(mode) 	TotalSeconds = 0 end
edited 3×, last 31.07.15 12:35:28 am
1
2
3
4
5
2
3
4
5
parse("hudtxt 1 "\169255255255".. 15-TotalSeconds.." until wall opens!" 300 30 1") elseif TotalSeconds == 15 then parse("trigger MyWall") parse("hudtxt 1") end
And i think i make it good but im not sure.
http://prntscr.com/7z9cur
1
parse("hudtxt 0 "\169255255255".. 15-TotalSeconds.." until wall opens!" 300 30 1")
I'm sure you are capable of fixing this mistake, it's a minor one.
edited 1×, last 31.07.15 05:33:58 pm
/edit: i try... And try... And try! Im angry now becouse i dont know what is wrong, can u help me better, dude? Maybe it's my fail but i will trying...
edited 1×, last 31.07.15 10:09:11 pm
parse('hudtxt 0 "\169255255255'..15 - TotalSeconds..' until wall opens!" 300 30 1')
or a better way:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
function hudtxt(hudid,text,x,y,align) 	local align = align or 0 	--[[ this is same like: 	local align 	if not align then // if align == nil then 		align = 0 -- I can't set local here because outside the IF function, variable won't be visible 	end 	--]] 	parse('hudtxt '..hudid..' "'..text..'" '..x..' '..y..' '..align) end -- then use: hudtxt(0,'\169255255255'..15 - TotalSeconds..' until wall opens!',300,30,1)
Admin/mod comment
Pointless More tag has been removed! / GeoB99edited 1×, last 01.08.15 02:27:06 pm
Thank you@ Rainoth: for help, u re very helpful
Okay, now i see the text, but when the walls are open, after 1 sec they are closed, and then after 1 sec are open and again and again.
It is happen when hudtxt is 0:
1
2
3
4
2
3
4
elseif TotalSeconds == 30 then parse("trigger MyWall") parse("hudtxt 0") end
All code:
//edit: okay i will delete this line from "elseif"
1
parse("trigger MyWall")
Btw. what's going on with this code in elseif? Why it is here? I think i script dont need it, and what do u think about it?
edited 2×, last 01.08.15 02:38:36 pm