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[edit]
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[edit]
- cmd
- The command the server should run.
Example[edit]
// This code restarts the game if everyone has died too many times if (--lives <= 0) localcmd("restart\n");