English Zombie script

21 replies
Goto Page
To the start Previous 1 2 Next To the start
17.07.12 01:53:07 pm
Up
Ilmuminati
User
Offline Off
It's fixed now
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
imgs={}
for id = 1,32 do
imgs[id]=0
end

tilepenghilang = {114,85}

addhook("movetile","_movetile")
function _movetile(id,tx,ty)
     for _, tiles in pairs(tilepenghilang) do
          if tile(tx,ty,"frame")~=tiles then
               if imgs[id]==0 then
                    imgs[id]=image("imagepath",1,0,132+id)
               end
          elseif tile(tx,ty,"frame")==tiles then
               if imgs[id]>0 then
                    freeimage(imgs[id])
                    imgs[id]=0
               end
          end
     end
end
[IGR]-0x45525A41|thread cs2d New dofile system|[#-01]-w0w-[CityLife Server] Developer|Rian2ID Presents...
17.07.12 02:16:25 pm
Up
Autumn
User
Offline Off
The image is removed only from a tile #85,and on a tile#114 it comes back.And I need to removed it on the tile#85 and #114.
To the start Previous 1 2 Next To the start