home *** CD-ROM | disk | FTP | other *** search
- /*
- **
- ** _server.qc (Server Code, 1.0)
- **
- ** Copyright (C) 1996 Johannes Plass
- **
- ** This program is free software; you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation; either version 2 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- **
- ** Author: Johannes Plass (plass@dipmza.physik.uni-mainz.de)
- **
- */
-
- void(entity player) ServerInit =
- {
- if (!USE_MODULE_SERVER) return;
- stuffcmd(player,"alias help-server \"impulse 206\"\n");
- };
-
- void(entity player) ServerInfo =
- {
- if (!USE_MODULE_SERVER) return;
- // 123456789#123456789#123456789#12345678
- sprint(player,"# Server: Type 'help-server' for help\n");
- sprint(player," on server settings and extensions.\n");
- };
-
- void(entity player) ServerHelp =
- {
- if (!USE_MODULE_SERVER) return;
- ServerShowServerSettings(player);
- sprint(player,"\n");
- ModulesShowInfo(player);
- };
-
- void(entity player) ServerShowServerSettings =
- {
- local float num;
- local string numstr;
-
- if (!USE_MODULE_SERVER) return;
- sprint(player, "### Server Settings:\n\n");
- num = cvar("registered");
- numstr = ftos(num);
- sprint(player, " registered: ");
- sprint(player, numstr);
- sprint(player, "\n");
- num = cvar("sys_ticrate");
- numstr = ftos(num);
- sprint(player, " sys_ticrate: ");
- sprint(player, numstr);
- sprint(player, "\n");
- num = cvar("pausable");
- numstr = ftos(num);
- sprint(player, " pausable: ");
- sprint(player, numstr);
- sprint(player, "\n");
- num = cvar("teamplay");
- numstr = ftos(num);
- sprint(player, " teamplay: ");
- sprint(player, numstr);
- sprint(player, "\n");
- num = cvar("sv_aim");
- numstr = ftos(num);
- sprint(player, " sv_aim: ");
- sprint(player, numstr);
- sprint(player, "\n");
- };
-
-
-
-