Console variable query helper values.
Reply sources for commands.
Callback for command listeners. This is invoked whenever any command reaches the server, from the server console itself or a player.
Called when a generic console command is invoked.
Called when a server-only command is invoked.
Global listener for the chat commands.
Global post listener for the chat commands.
Adds a callback that will fire when a command is sent to the server.
Adds an informational string to the server's public "tags". This string should be a short, unique identifier.
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.
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.
Executes a client command. Note that this will not work on clients unless they have cl_restrict_server_commands set to 0.
Returns true if the supplied command exists.
Executes a client command on the server without being networked.
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().
Executes a KeyValues client command on the server without being networked.
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.
Reads the next entry in a ConCommandBase iterator.
Given an originating client and a target client, returns the string that describes the originating client according to the sm_show_activity cvar.
Retrieves a command argument given its index, from the current console or server command.
Returns the number of arguments from the current console or server command.
Retrieves the entire command argument string in one lump from the current console or server command.
Returns the current reply source of a command.
Returns the bitstring of flags of a command.
Gets a command iterator. Must be freed with CloseHandle().
Inserts a server command at the beginning of the server command buffer.
Returns whether the current say hook is a chat trigger.
Sends a message to a client's console.
Sends a message to every client's console.
Sends a message to the server console.
Reads a command iterator, then advances to the next command if any. Only SourceMod specific commands are returned.
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.
Creates a console command, or hooks an already existing one.
Creates a server-only console command, or hooks an already existing one.
Removes a previously added command listener, in reverse order of being added.
Removes a tag previously added by the calling plugin.
Replies to a message in a command.
Executes a server command as if it were on the server console (or RCON)
Executes a server command as if it were on the server console (or RCON) and stores the printed text into buffer.
Executes every command in the server's command buffer, rather than once per frame.
Sets the current reply source of a command.
Sets the bitstring of flags of a command.
Displays usage of an admin command to users depending on the setting of the sm_show_activity cvar.
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.
Same as ShowActivity(), except the tag parameter is used instead of "[SM] " (note that you must supply any spacing).