Redesigned how server commands work. The "plugins" command will be back soon.
1 #ifndef _INCLUDE_SOURCEMOD_SERVERCOMMANDS_H_
2 #define _INCLUDE_SOURCEMOD_SERVERCOMMANDS_H_
5 #include <IRootConsoleMenu.h>
7 #include "sourcemm_api.h"
10 #include <sh_string.h>
13 using namespace SourceMod;
14 using namespace SourceHook;
22 class RootConsoleMenu :
23 public IConCommandBaseAccessor,
25 public IRootConsoleCommand,
31 public: //IConCommandBaseAccessor
32 bool RegisterConCommandBase(ConCommandBase *pCommand);
33 public: //SMGlobalClass
34 void OnSourceModStartup(bool late);
35 void OnSourceModShutdown();
36 public: //IRootConsoleCommand
37 void OnRootConsoleCommand(const char *cmd, unsigned int argcount);
38 public: //IRootConsole
39 bool AddRootConsoleCommand(const char *cmd, const char *text, IRootConsoleCommand *pHandler);
40 bool RemoveRootConsoleCommand(const char *cmd, IRootConsoleCommand *pHandler);
41 void ConsolePrint(const char *fmt, ...);
42 const char *GetArgument(unsigned int argno);
43 unsigned int GetArgumentCount();
44 const char *GetArguments();
49 List<ConsoleEntry *> m_Menu;
52 extern RootConsoleMenu g_RootMenu;
54 #endif //_INCLUDE_SOURCEMOD_SERVERCOMMANDS_H_