I have a server, and it has multiple mods. Sometimes we want play de_dust2 or prison maps, sometimes we want play zombie plague or other crazy and beautifull maps and mods.
You know, some maps has their own lua files, if there is a .lua file with map name in maps folder, it will run just with this map. I copied zombie plague addfile codes and paste them a new file, like mapname.lua. And zp lua is only works on zp maps.
I want make this thing for files in servertransfer.lst, im searching for a lua. I don't want players need download zombie plague files when map is fy_snow because they dont need it. I cant code lua scripts, so i need your help. Some people searching for this too, if this will make and share in file directory, it can be a very helpfull for all cs2d players.
If we simpfly this: A lua file will check map, if map is zombieplague, it will ask for download to client, and this files will transfered. If map is fy_snow, no downloads will need.
I think its simple but i don't know its possible or impossible. If its cant be, can someone write a script for lua files. If you dont wanna make, can you tell me which code i need for check map?
If map is zp_de_dust2, dofile blabla.lua, If map is escape del virus k, dofile blabla.lua.