sourcemm/sample_mm/SamplePlugin.cpp
changeset 142 40e1fc972412
parent 140 800dc9ba92c5
child 152 179336f55ff6
     1.1 --- a/sourcemm/sample_mm/SamplePlugin.cpp	Fri Oct 21 07:18:53 2005 +0000
     1.2 +++ b/sourcemm/sample_mm/SamplePlugin.cpp	Fri Oct 21 07:22:37 2005 +0000
     1.3 @@ -25,6 +25,11 @@
     1.4  	RETURN_META_VALUE(MRES_IGNORED, true);
     1.5  }
     1.6  
     1.7 +void SamplePlugin::OnLevelShutdown()
     1.8 +{
     1.9 +	META_LOG(g_PLAPI, "OnLevelShutdown() called from listener");
    1.10 +}
    1.11 +
    1.12  void SamplePlugin::ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
    1.13  {
    1.14  	META_LOG(g_PLAPI, "ServerActivate() called: edictCount=%d, clientMax=%d", edictCount, clientMax);
    1.15 @@ -173,6 +178,8 @@
    1.16  
    1.17  	SH_CALL(m_Engine_CC, &IVEngineServer::LogPrint)("All hooks started!\n");
    1.18  
    1.19 +	g_SMAPI->AddListener(g_PLAPI, this);
    1.20 +
    1.21  	return true;
    1.22  }
    1.23