View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-04-2018 , 01:02   Re: Polymorph: Mod Manager
Reply With Quote #946

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)
}
__________________
fysiks is offline