diff -r 84488512ee3a -r 40e1fc972412 sourcemm/sample_mm/SamplePlugin.cpp --- a/sourcemm/sample_mm/SamplePlugin.cpp Fri Oct 21 07:18:53 2005 +0000 +++ b/sourcemm/sample_mm/SamplePlugin.cpp Fri Oct 21 07:22:37 2005 +0000 @@ -25,6 +25,11 @@ RETURN_META_VALUE(MRES_IGNORED, true); } +void SamplePlugin::OnLevelShutdown() +{ + META_LOG(g_PLAPI, "OnLevelShutdown() called from listener"); +} + void SamplePlugin::ServerActivate(edict_t *pEdictList, int edictCount, int clientMax) { META_LOG(g_PLAPI, "ServerActivate() called: edictCount=%d, clientMax=%d", edictCount, clientMax); @@ -173,6 +178,8 @@ SH_CALL(m_Engine_CC, &IVEngineServer::LogPrint)("All hooks started!\n"); + g_SMAPI->AddListener(g_PLAPI, this); + return true; }