Class | Description |
---|---|
CommandIterator |
Enum | Description |
---|---|
QueryCookie | Console variable query helper values. |
ReplySource | Reply sources for commands. |
Type | Description |
---|---|
CommandListener | Callback for command listeners. This is invoked whenever any command reaches the server, from the server console itself or a player. |
ConCmd | Called when a generic console command is invoked. |
SrvCmd | Called when a server-only command is invoked. |
Function | Description |
---|---|
OnClientSayCommand | Global listener for the chat commands. |
OnClientSayCommand_Post | Global post listener for the chat commands. |
Function | Description |
---|---|
AddCommandListener | Adds a callback that will fire when a command is sent to the server. |
AddServerTag | Adds an informational string to the server's public "tags". This string should be a short, unique identifier. |
CheckAccess | Returns whether an admin has access to a given command string. The string can be any override string, as overrides can be independent of commands. This feature essentially allows you to create custom flags using the override system. |
CheckCommandAccess | Returns whether a client has access to a given command string. The string can be any override string, as overrides can be independent of commands. This feature essentially allows you to create custom flags using the override system. |
ClientCommand | Executes a client command. Note that this will not work on clients unless they have cl_restrict_server_commands set to 0. |
CommandExists | Returns true if the supplied command exists. |
FakeClientCommand | Executes a client command on the server without being networked. |
FakeClientCommandEx | Executes a client command on the server without being networked. The execution of the client command is delayed by one frame to prevent any re-entrancy issues that might surface with FakeClientCommand(). |
FakeClientCommandKeyValues | Executes a KeyValues client command on the server without being networked. |
FindFirstConCommand | Starts a ConCommandBase search, traversing the list of ConVars and ConCommands. If a Handle is returned, the next entry must be read via FindNextConCommand(). The order of the list is undefined. |
FindNextConCommand | Reads the next entry in a ConCommandBase iterator. |
FormatActivitySource | Given an originating client and a target client, returns the string that describes the originating client according to the sm_show_activity cvar. |
GetCmdArg | Retrieves a command argument given its index, from the current console or server command. |
GetCmdArgFloat | Retrieves a float command argument given its index, from the current console or server command. Will return 0.0 if the argument can not be parsed as a number. Use GetCmdArgFloatEx to handle that explicitly. |
GetCmdArgFloatEx | Retrieves a float command argument given its index, from the current console or server command. Returns false if the argument can not be completely parsed as a floating point. |
GetCmdArgInt | Retrieves a numeric command argument given its index, from the current console or server command. Will return 0 if the argument can not be parsed as a number. Use GetCmdArgIntEx to handle that explicitly. |
GetCmdArgIntEx | Retrieves a numeric command argument given its index, from the current console or server command. Returns false if the argument can not be completely parsed as an integer. |
GetCmdArgs | Returns the number of arguments from the current console or server command. |
GetCmdArgString | Retrieves the entire command argument string in one lump from the current console or server command. |
GetCmdReplySource | Returns the current reply source of a command. |
GetCommandFlags | Returns the bitstring of flags of a command. |
GetCommandIterator | Gets a command iterator. Must be freed with CloseHandle(). |
InsertServerCommand | Inserts a server command at the beginning of the server command buffer. |
IsChatTrigger | Returns whether the current say hook is a chat trigger. |
PrintToConsole | Sends a message to a client's console. |
PrintToConsoleAll | Sends a message to every client's console. |
PrintToServer | Sends a message to the server console. |
ReadCommandIterator | Reads a command iterator, then advances to the next command if any. Only SourceMod specific commands are returned. |
RegAdminCmd | Creates a console command as an administrative command. If the command does not exist, it is created. When this command is invoked, the access rights of the player are automatically checked before allowing it to continue. |
RegConsoleCmd | Creates a console command, or hooks an already existing one. |
RegServerCmd | Creates a server-only console command, or hooks an already existing one. |
RemoveCommandListener | Removes a previously added command listener, in reverse order of being added. |
RemoveServerTag | Removes a tag previously added by the calling plugin. |
ReplyToCommand | Replies to a message in a command. |
ServerCommand | Executes a server command as if it were on the server console (or RCON) |
ServerCommandEx | Executes a server command as if it were on the server console (or RCON) and stores the printed text into buffer. |
ServerExecute | Executes every command in the server's command buffer, rather than once per frame. |
SetCmdReplySource | Sets the current reply source of a command. |
SetCommandFlags | Sets the bitstring of flags of a command. |
ShowActivity | Displays usage of an admin command to users depending on the setting of the sm_show_activity cvar. |
ShowActivity2 | Displays usage of an admin command to users depending on the setting of the sm_show_activity cvar. All users receive a message in their chat text, except for the originating client, who receives the message based on the current ReplySource. |
ShowActivityEx | Same as ShowActivity(), except the tag parameter is used instead of "[SM] " (note that you must supply any spacing). |