I want the script like that:
If i destroy a "Env_Breakable" a item appear, like money or a weapon.
I need this script!
Thanks.
addhook("break","getitem") function getitem(x,y) 	parse("spawnitem 10 "..x.." "..y) -- 10 is the weapon ID, in this case, the M3 end
addhook("break","getitem") function getitem(x,y) parse("spawnitem 10 "..x.." "..y) -- 10 is the weapon ID, in this case, the M3 end addhook("break","getitem") function getitem(x,y) parse("spawnitem 10 "..x.." "..y) -- 10 is the weapon ID, in this case, the M3 end
addhook("break","getitem") 	function getitem(x,y) 		if (x == 1 and y == 48) then 		parse("spawnitem 1 1 48") 	end 		if (x == 11 and y == 48) then 		parse("spawnitem 3 11 48") 	end end