Ok, so apparently it's a little more complicated. Keep the previously mentioned change and then do this:
Remove this:
Code:
// Decrement maps played to only extend mod by one map.
new szMapsPlayed[4]
g_iMapsPlayed--
num_to_str(g_iMapsPlayed, szMapsPlayed, charsmax(szMapsPlayed))
set_localinfo("mapcount", szMapsPlayed)
Replace the entire plugin_end() function with this one:
Code:
public plugin_end()
{
if( g_iThisMod != g_iNextMod )
{
g_iMapsPlayed = 0
UpdatePluginFile()
}
new szMapsPlayed[4]
num_to_str(g_iMapsPlayed, szMapsPlayed, charsmax(szMapsPlayed))
set_localinfo("mapcount", szMapsPlayed)
}
__________________