Heres a table of mapvoting script:
1
listmaps = {de_dust,aim_shotgun)
But i need to do something like this:
1
listmaps= {..all .map files in maps folder..)
Thanks in advance!
listmaps = {de_dust,aim_shotgun)
listmaps= {..all .map files in maps folder..)
function capture_log(msg) hooked to log hook 	if capture_mode is true and msg isn't "----- Maps -----" 		-- capture map list here(like inserting "msg" contents into table) 	endif endfunc .. somewhere in your code capture_mode=true parse("maps") capture_mode=false
maps = {} addhook("log", "onLog") function onLog (txt) 	table.insert(maps, txt) end parse("maps") freehook("log","onLog") print("--") for i = 2, #maps do 	print(maps[i]) end print("--")