Add info about callback function

This commit is contained in:
OciXCrom 2021-03-11 14:11:59 +01:00
parent bee4b47b07
commit 51feb03e1b

View File

@ -1894,6 +1894,11 @@ native remove_user_flags(index, flags = -1, id = 0);
* Registers a callback to be called when the client executes a command from the * Registers a callback to be called when the client executes a command from the
* console. * console.
* *
* @note The function is called in the following manner:
* id - Client index
* flags - Admin privilege flags set in the "flags" argument
* cmd_id - Command index (same as the function's return value)
*
* @note For a list of possible access flags, see the ADMIN_* constants in * @note For a list of possible access flags, see the ADMIN_* constants in
* amxconst.inc * amxconst.inc
* @note Opting in to FlagManager enables the admin privileges to be overwritten * @note Opting in to FlagManager enables the admin privileges to be overwritten
@ -1920,6 +1925,11 @@ native register_clcmd(const client_cmd[], const function[], flags = -1, const in
* Registers a callback to be called when the client or server executes a * Registers a callback to be called when the client or server executes a
* command from the console. * command from the console.
* *
* @note The function is called in the following manner:
* id - Client index
* flags - Admin privilege flags set in the "flags" argument
* cmd_id - Command index (same as the function's return value)
*
* @note For a list of possible access flags, see the ADMIN_* constants in * @note For a list of possible access flags, see the ADMIN_* constants in
* amxconst.inc * amxconst.inc
* @note Opting in to FlagManager enables the admin privileges to be overwritten * @note Opting in to FlagManager enables the admin privileges to be overwritten
@ -1946,6 +1956,11 @@ native register_concmd(const cmd[], const function[], flags = -1, const info[] =
* Registers a callback to be called when the server executes a command from the * Registers a callback to be called when the server executes a command from the
* console. * console.
* *
* @note The function is called in the following manner:
* id - Client index
* flags - Admin privilege flags set in the "flags" argument
* cmd_id - Command index (same as the function's return value)
*
* @note For a list of possible access flags, see the ADMIN_* constants in * @note For a list of possible access flags, see the ADMIN_* constants in
* amxconst.inc * amxconst.inc
* *