View Single Post
Whai
Senior Member
Join Date: Jul 2018
Old 11-17-2018 , 13:58   Re: Print chat only to the admins
Reply With Quote #25

From this Api Reference about ReplyToCommand Synthax
There is this :
Quote:

ReplyToCommand Function

____________________________________________


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.


Code:
void ReplyToCommand(int client, const char[] format, any... ...)

Parameters

int client
  • Client index, or 0 for server.

const char[] format
  • Formatting rules.

any... ...
  • Variable number of format parameters.

Errors
If the client is not connected or invalid.
or from console.inc :
Quote:
/**
* 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.
* @error If the client is not connected or invalid.
*/

native void ReplyToCommand(int client, const char[] format, any ...);
That means the client (in your case) who issued the command will get this message
__________________

Last edited by Whai; 11-17-2018 at 14:10.
Whai is offline