If you are using the default map chooser from the AMX Mod X base package.
Code:
new amx_nextmap; public plugin_init() { amx_nextmap = get_cvar_pointer("amx_nextmap"); } public yourfunction() { new nextmap[64]; get_pcvar_string(amx_nextmap, nextmap, sizeof(nextmap) - 1); // next map }
Make sure this is below the map chooser plugin in the plugins.ini