Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
localcmd
From Quake Wiki
void localcmd(string cmd)
Usage
Executes a command on the server. These should always end with a \n character in order to execute properly. This can be useful for controlling the flow of the game e.g. changing levels or restarting the game.
Parameters
- cmd
- The command the server should run.
Example
// This code restarts the game if everyone has died too many times if (--lives <= 0) localcmd("restart\n");