public plugin_cfg(){ AddMenuItem("Ruletka", "ruletka_admin", ADMIN_IMMUNITY, "Ruletka"); new cfgdir[64], cfgfile[128], map[64], mapprefix[16]; get_configsdir(cfgdir, 63); get_mapname(map, 63); copyc(mapprefix, 63, map, '_'); format(cfgfile, 63, "%s/ruletka.cfg", cfgdir); if(file_exists(cfgfile)){ server_cmd("exec %s", cfgfile); } format(cfgfile, 63, "%s/maps/prefix_%s-ruletka.cfg", cfgdir, mapprefix); if(file_exists(cfgfile)){ server_cmd("exec %s", cfgfile); } format(cfgfile, 63, "%s/maps/%s-ruletka.cfg", cfgdir, map); if(file_exists(cfgfile)){ server_cmd("exec %s", cfgfile); } }