RegisterCustomCommand Function

Registers a custom command. The command will be deregistered automatically, if the plugin is disabled or the game closed. For an example of how to use this function, see Custom Commands.

Syntax

void RegisterCustomCommand(
const string&in name,
const string&in description,
OnCustomCommand@ callback
)

Parameters

const string&in name
The command name.

const string&in description
The command description.

OnCustomCommand@ callback
The callback function that will be called when the command is executed.

Return value

None.

Remarks

None.