|
|
1.1 root 1:
2: #include "g_local.h"
3:
4:
5: void Svcmd_Test_f (void)
6: {
7: gi.cprintf (NULL, PRINT_HIGH, "Svcmd_Test_f()\n");
8: }
9:
10: /*
11: =================
12: ServerCommand
13:
14: ServerCommand will be called when an "sv" command is issued.
15: The game can issue gi.argc() / gi.argv() commands to get the rest
16: of the parameters
17: =================
18: */
19: void ServerCommand (void)
20: {
21: char *cmd;
22:
23: cmd = gi.argv(1);
24: if (Q_stricmp (cmd, "test") == 0)
25: Svcmd_Test_f ();
26: else
27: gi.cprintf (NULL, PRINT_HIGH, "Unknown server command \"%s\"\n", cmd);
28: }
29:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.