1 #ifndef _INCLUDE_SAMPLEPLUGIN_H
2 #define _INCLUDE_SAMPLEPLUGIN_H
4 #include <ISmmPlugin.h>
6 class SamplePlugin : public ISmmPlugin
9 bool Load(PluginId id, ISmmAPI *ismm, factories *list, char *error, size_t maxlen);
10 bool Unload(char *error, size_t maxlen);
11 void AllPluginsLoaded();
12 bool Pause(char *error, size_t maxlen)
16 bool Unpause(char *error, size_t maxlen)
21 int GetApiVersion() { return PLAPI_VERSION; }
23 const char *GetAuthor()
29 return "Sample Plugin";
31 const char *GetDescription()
33 return "Sample plugin that hooks basic things";
37 return "http://www.sourcemm.net/";
39 const char *GetLicense()
43 const char *GetVersion()
51 const char *GetLogTag()
57 extern SamplePlugin g_SamplePlugin;
60 #endif //_INCLUDE_SAMPLEPLUGIN_H