Patch for more HLDS's from one Directory (I hope this will be correct way ;) )
Search
Code:
new Float:amx_ext_count = 0.0
After add
Search
Code:
get_configsdir(g_maphistFile,63)
After add
Code:
get_cvar_string("hostname",hostname,63)
replace_all(hostname,63,"/","-")
replace_all(hostname,63,"\","-")
replace_all(hostname,63,":","-")
replace_all(hostname,63,"*","-")
replace_all(hostname,63,"?","-")
replace_all(hostname,63,">","-")
replace_all(hostname,63,"<","-")
replace_all(hostname,63,"|","-")
Search
Code:
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)
Replace with:
Code:
format(g_maphistFile, 63, "%s/mapchooser/%s",g_maphistFile,hostname)
if (!dir_exists(g_maphistFile))
mkdir(g_maphistFile)
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)