- added experimental (so far) support for SourceMod chat triggers
- added ReplyToCommand() for replying to triggers nicely --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40899
This commit is contained in:
@@ -133,7 +133,7 @@ native PrintToServer(const String:format[], any:...);
|
||||
/**
|
||||
* Sends a message to a client's console.
|
||||
*
|
||||
* @param client Player index.
|
||||
* @param client Client index.
|
||||
* @param format Formatting rules.
|
||||
* @param ... Variable number of format parameters.
|
||||
* @noreturn
|
||||
@@ -141,6 +141,21 @@ native PrintToServer(const String:format[], any:...);
|
||||
*/
|
||||
native PrintToConsole(client, const String:format[], any:...);
|
||||
|
||||
/**
|
||||
* Reples to a message in a command.
|
||||
*
|
||||
* A client index of 0 will use PrintToServer().
|
||||
* If the command was from the console, PrintToConsole() is used.
|
||||
* If the command was from chat, PrintToChat() is used.
|
||||
*
|
||||
* @param client Client index, or 0 for server.
|
||||
* @param format Formatting rules.
|
||||
* @param ... Variable number of format parameters.
|
||||
* @noreturn
|
||||
* @error If the client is not connected or invalid.
|
||||
*/
|
||||
native ReplyToCommand(client, const String:fornmat[], any:...);
|
||||
|
||||
/**
|
||||
* Called when a server-only command is invoked.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user