we break buildings, image will disapprear instantly, will this possible?
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
is there anyway to remove image over the building?
5 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
we break buildings, image will disapprear instantly, will this possible?
Your text is confusing me,sry.
![cs2d lua hook](img/i_codehelp.png)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
stroys = {} function shit(objID) 	local id = tonumber(objID) 	stroys[id] = image("gfx/flare1.bmp",object(id,"x")+16,object(id,"y")+16,1) end addhook("build","stroy") function stroy(id,type,x,y,mode,objID) 	timer(1,"shit",objID) end addhook("objectkill","destroy") function destroy(objID,player) 	if stroys[objID] ~= nil then 		freeimage(stroys[objID]) 		stroys[objID] = nil 	end end
I can't guarantee that this script will work correctly but i didn't noticed unexpected events.
1× editiert, zuletzt 18.12.13 18:18:51
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)