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
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
abcm = initArray(32)
settilemenu = initArray(32)
addhook("join","requestdata23")
function requestdata23(id)
settilemenu[id] = 0
end
addhook("serveraction","tilemenu2")
function tilemenu2(id,p)
	if (p == 2) then
		if (settilemenu[id] == 1) then
			freeimage(abcm[id])
		 	settilemenu[id] = 0
		end
	elseif (p == 3) then
		if (settilemenu[id] == 0) then
			settilemenu[id] = 1
			abcm[id] = image('gfx/block.bmp', 75, 250, 2, id)
		end
	end
end