RegServerCmd Function

Creates a server-only console command, or hooks an already existing one.

Server commands are case sensitive.

void RegServerCmd(const char[] cmd, SrvCmd callback, const char[] description, int flags)


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.


Command name is the same as an existing convar.