mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-15 00:41:21 +00:00
30 lines
504 B
C
30 lines
504 B
C
|
|
||
|
#include "g_local.h"
|
||
|
|
||
|
|
||
|
void Svcmd_Test_f (void)
|
||
|
{
|
||
|
gi.cprintf (NULL, PRINT_HIGH, "Svcmd_Test_f()\n");
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
=================
|
||
|
ServerCommand
|
||
|
|
||
|
ServerCommand will be called when an "sv" command is issued.
|
||
|
The game can issue gi.argc() / gi.argv() commands to get the rest
|
||
|
of the parameters
|
||
|
=================
|
||
|
*/
|
||
|
void ServerCommand (void)
|
||
|
{
|
||
|
char *cmd;
|
||
|
|
||
|
cmd = gi.argv(1);
|
||
|
if (Q_stricmp (cmd, "test") == 0)
|
||
|
Svcmd_Test_f ();
|
||
|
else
|
||
|
gi.cprintf (NULL, PRINT_HIGH, "Unknown server command \"%s\"\n", cmd);
|
||
|
}
|
||
|
|