I'm requesting that a "map-based command executer" compatible with Half-Life 2 based games such as Counter-Strike: Source be created. Basically, you would just write a txt file, for example "surf_10x_final.autocmds.txt" (of course surf_10x_final is just an example) and inside it might look like this:
Code:
// enter the code to execute on the map below
sm_csay Welcome to Surf_10x_Final!
sm_restrict weapon_m249
Maybe it would work something like this:
- Install plugin - create txt file with commands inside, and place it in the correct directory (whatever that may be). For example: de_dust.autocmds.txt
- Restart the server. When the server finishes its restart, the plugin will check the map it's on. It will get all the files with autocmds in the name in the previously said folder and find our de_dust text file. It will look for the first period "." and get all the characters before that - it will assume this is the map to execute this file's commands on. Like this: -get where "autocmds" is in string "filename" from folder "directory" -found "de_dust.autocmds.txt" -search string "filename" for character "." -found "." -get characters before "." -found "de_dust" -store to array "maps"
- The plugin will compare all values in the array (this is all of the maps with a text file) to the current map. If it finds a match, it will execute the map's text file's commands.
That's just my basic example of how it would work, don't know how it looks in code but that's why I'm requesting it here!