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

localcmd

From Quake Wiki

Revision as of 21:15, 4 March 2023 by 108.56.248.173 (talk) (Fix formatting of \n literals.)

Function: localcmd

void localcmd (string text)

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

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

Examples:

  localcmd("restart\n");      // restart the level
  localcmd("teamplay 1\n");   // set deathmatch mode to teamplay
  localcmd("killserver\n");   // poor server...