PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("maprules", "1.0", "Popeye");
}
public plugin_cfg()
{
new map[32];
get_mapname(map, sizeof (map));
new file[64];
get_configsdir(file, sizeof (file));
format(file, sizeof (file), "%s/%s.txt", file, map);
if (file_exists(file))
{
// Your actions...
}
}
If you not good in scripting you should post topic in suggestions/requests and give us more details about plugin you want