map folder (cs2d/maps/) in a menu
i tried to made but i don't know how to list the names in a menu
1.Is it possible?
2.How to Make it?
Thanks a lot.
parse("Changemap <mapname>")
os.execute('dir "maps" > tmp') --windows os.execute('ls -a1 "maps" > tmpmap') --unix maps={} for file in io.lines("tmp") do 	if file:sub(-4) == ".map" then 		table.insert(maps,string.sub(file,40,-5)) 	end end os.execute('del tmp') --windows os.execute('rm tmp') --unix for _,map in ipairs(maps) do 	msg(map) --showing that it works end