Added 1.3d to changelog...
1 /* ======== stub_mm ========
2 * Copyright (C) 2004-2006 Metamod:Source Development Team
3 * No warranties of any kind
7 * Author(s): David "BAILOPAN" Anderson
8 * ============================
14 SH_DECL_HOOK3_void(IServerGameDLL, ServerActivate, SH_NOATTRIB, 0, edict_t *, int, int);
16 StubPlugin g_StubPlugin;
18 PLUGIN_EXPOSE(SamplePlugin, g_StubPlugin);
20 void ServerActivate_handler(edict_t *pEdictList, int edictCount, int clientMax)
22 META_LOG(g_PLAPI, "ServerActivate() called: edictCount=%d, clientMax=%d", edictCount, clientMax);
23 RETURN_META(MRES_IGNORED);
26 bool StubPlugin::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
30 GET_V_IFACE_ANY(serverFactory, m_ServerDll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
32 SH_ADD_HOOK_STATICFUNC(IServerGameDLL, ServerActivate, m_ServerDll, ServerActivate_handler, true);
37 bool StubPlugin::Unload(char *error, size_t maxlen)
39 SH_REMOVE_HOOK_STATICFUNC(IServerGameDLL, ServerActivate, m_ServerDll, ServerActivate_handler, true);
44 bool StubPlugin::Pause(char *error, size_t maxlen)
49 bool StubPlugin::Unpause(char *error, size_t maxlen)
54 void StubPlugin::AllPluginsLoaded()
56 //This is an example of inter-plugin communication
58 void *ptr = g_SMAPI->MetaFactory("SamplePlugin", NULL, &id);
61 META_LOG(g_PLAPI, "Found Sample Plugin[%d] at (%p)!", id, ptr);
63 META_LOG(g_PLAPI, "Did not find Sample Plugin!");
67 const char *StubPlugin::GetAuthor()
72 const char *StubPlugin::GetName()
77 const char *StubPlugin::GetDescription()
82 const char *StubPlugin::GetURL()
84 return "http://www.mysite.com/";
87 const char *StubPlugin::GetLicense()
92 const char *StubPlugin::GetVersion()
97 const char *StubPlugin::GetDate()
102 const char *StubPlugin::GetLogTag()