after restarting server all works is going and its bad...
if its not possible maybe dc can take it as new idea
function do_write() 	local map=io.open("maps/"..game("sv_map")..".map","r+") 	if map:read("*l")=="Unreal Software's Counter-Strike 2D Map File (max)" then 		map:read(50) 		for i=1,12 do map:read("*l") end 		local tile_count=string.byte(map:read(1)) 		map:read(7) 		map:read("*l") 		map:read(11) 		if map:read("*l"):reverse()=="unrealsoftware.de" then 			map:read(tile_count) 			for x=0,map("xsize") do 				for y=0,map("ysize") do 					map:write(string.char(tile(x,y,"frame"))) 				end 			end 		else 			local pos=map:seek("cur") 			map:close() 			error("Invalid header! Seek at "..pos) 	else 		map:close() 		error("Invalid map file") 	end 	map:close() end
function do_write() 	local map=io.open("maps/"..game("sv_map")..".map","r+") 	if map:read("*l")=="Unreal Software's Counter-Strike 2D Map File (max)" then 		map:read(50) 		for i=1,12 do map:read("*l") end 		local tile_count=string.byte(map:read(1)) 		map:read(7) 		map:read("*l") 		map:read(11) 		if map:read("*l"):reverse()=="unrealsoftware.de" then 			map:read(tile_count) 			for x=0,map("xsize") do 				for y=0,map("ysize") do 					map:write(string.char(tile(x,y,"frame"))) 				end 			end 		else 			local pos=map:seek("cur") 			map:close() 			error("Invalid header! Seek at "..pos) 	else 		map:close() 		error("Invalid map file") 	end 	map:close() end