Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

localcmd

From Quake Wiki

Revision as of 16:30, 8 May 2008 by ShoTro (talk | contribs) (New page: == Function: localcmd == void localcmd (string text) text = text of the command, ended by \ (newline). Execute a command on the server, as if it had been typed on the server's ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: localcmd

void localcmd (string text)

      text = text of the command, ended by \
(newline).

Execute a command on the server, as if it had been typed on the server's console.

Examples:

  localcmd("restart\

"); // restart the level

  localcmd("teamplay 1\

"); // set deathmatch mode to teamplay

  localcmd("killserver\

"); // poor server...