Sorry, My Bad English. Help me Pls!!
Forum
CS2D Scripts Barbed wireBarbed wire
22 repliesSorry, My Bad English. Help me Pls!!
1
equip 1 88
88 - portal gun ID.
Portals much better than teleports.
(i used Search / FAQ)
have l4n biohazard lua to barbed wire..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function initArray(i,x,d) 	local array = {} 	if type(i) == "table" then 		array = i 		i = x 		x = d 	end 	if x == nil then 		x = 0 	end 	for m = 1 , i do 		if array[m] == nil then 			array[m] = x 		end 	end 	return array end prex = initArray(32) prey = initArray(32) addhook("join","nopass_reset") addhook("leave","nopass_reset") function nopass_reset(id) 	prex[id] = 0 	prey[id] = 0 end addhook("movetile","nopass_movetile") function nopass_movetile(id,x,y) 	for _, oid in ipairs(object(0,"table")) do 		if object(oid,"type") == 2 then 			if x == object(oid,"tilex") and y == object(oid,"tiley") then 				local px = prex[id]*32+16 				local py = prey[id]*32+16 				parse("setpos "..id.." "..px.." "..py) 				return 			end 		end 	end 	prex[id] = x 	prey[id] = y end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
function initArray(i,x,d) 	local array = {} 	if type(i) == "table" then 		array = i 		i = x 		x = d 	end 	if x == nil then 		x = 0 	end 	for m = 1 , i do 		if array[m] == nil then 			array[m] = x 		end 	end 	return array end prex = initArray(32) prey = initArray(32) spd = initArray(32) addhook("join","nopass_reset") addhook("leave","nopass_reset") function nopass_reset(id) 	prex[id] = 0 	prey[id] = 0 	spd[id] = 0 end addhook("movetile","nopass_movetile") function nopass_movetile(id,x,y) 	for _, oid in ipairs(object(0,"table")) do 		if object(oid,"type") == 2 then 			if x == object(oid,"tilex") and y == object(oid,"tiley") then 				local px = prex[id]*32+16 				local py = prey[id]*32+16 				parse("setpos "..id.." "..px.." "..py) 				parse("speedmod "..id.." -100") 				timer(1000,"parse","speedmod "..id.." "..spd[id]) 				return 			end 		end 	end 	prex[id] = x 	prey[id] = y 	spd[id] = player(id,"speedmod") end
but add zombies only teleport back?
but does not work
edited 2×, last 30.01.13 11:33:57 am
but but does not work
edited 2×, last 30.01.13 03:24:09 pm
PLS HELP ME !!
edited 1×, last 01.02.13 04:03:57 pm