diff -r 1ec92bdb4a04 -r b66489d8aedc sample_mm/sample_mm.cpp --- a/sample_mm/sample_mm.cpp Mon Feb 16 18:13:31 2009 -0500 +++ b/sample_mm/sample_mm.cpp Wed Feb 18 01:38:23 2009 -0600 @@ -100,7 +100,7 @@ SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false); SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false); -#if SOURCE_ENGINE == SE_EPISODEONE +#if !defined METAMOD_PLAPI_VERSION m_EngineCC = SH_GET_CALLCLASS(engine); #endif @@ -130,7 +130,7 @@ SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false); SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false); -#if SOURCE_ENGINE == SE_EPISODEONE +#if !defined METAMOD_PLAPI_VERSION SH_RELEASE_CALLCLASS(m_EngineCC); #endif @@ -165,7 +165,7 @@ void SamplePlugin::Hook_ClientCommand(edict_t *pEntity) #endif { -#if SOURCE_ENGINE == SE_EPISODEONE +#if SOURCE_ENGINE <= SE_DARKMESSIAH CCommand args; #endif