RegServerCmd

Last Updated2016-05-21
Created At2007-02-15

Creates a server-only console command, or hooks an already existing one. Server commands are case sensitive.

native void RegServerCmd(const char[] cmd, SrvCmd callback, const char[] description = "", int flags = 0)

Parameters

const char[] cmd
Name of the command to hook or create.
SrvCmd callback
A function to use as a callback for when the command is invoked.
const char[] description
Optional description to use for command creation.
int flags
Optional flags to use for command creation.

Return Value

void

Error

Command name is the same as an existing convar.