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
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
function initArray(m,v)
	local array = {}
	for i = 1, m do
		array[i]=v
	end
	return array
end
monster=initArray(32,0)
addhook("startround","start")
function start()
	i=1
	monster[i]=image("gfx/cs2d.bmp",320,320,0)--------Image at 320 320
	imagehitzone(monster[i],104,-92/2,-92/2,92,92)
end
start()
addhook("second","second")
function second()
	tween_rotate(monster[i],1000,math.random(-50,50))
end
addhook("hitzone","hz")
function hz(i,player,obj,wpn,x,y)
	freeimage(monster[i])
end
If u run this scripts in official map ( Or any map with no Env_Building) Image will disappear if u shot it.
But if u run this scripts in any maps has turrets(Env_building), It will not.
So weird.
Why ?
Hitzone not work in some map.
1 
Offline
AlcatrazZ