- sm_show_activity is now protected

- added sm_who
- added GetCmdReplySource() for sm_who

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40929
This commit is contained in:
David Anderson
2007-06-08 01:58:26 +00:00
parent de339cab8b
commit a5d17bbf6b
5 changed files with 148 additions and 1 deletions
+16
View File
@@ -35,6 +35,15 @@ enum QueryCookie
QUERYCOOKIE_FAILED = 0,
};
/**
* Reply sources for commands.
*/
enum ReplySource
{
SM_REPLY_TO_CONSOLE = 0,
SM_REPLY_TO_CHAT = 1,
};
/**
* Console variable query result values.
*/
@@ -167,6 +176,13 @@ native PrintToConsole(client, const String:format[], any:...);
*/
native ReplyToCommand(client, const String:format[], any:...);
/**
* Returns the current reply source of a command.
*
* @return ReplySource value.
*/
native ReplySource:GetCmdReplySource();
/**
* Displays usage of an admin command to users depending on the
* setting of the sm_show_activity cvar.