Fixed "Unknown command" in zr_config_reload_all and fixed an error in zr_config_reload. Added copywrite to zrtools include file.

This commit is contained in:
Greyscale 2009-07-20 22:05:42 -07:00
parent 162bd1e107
commit 756fc007ec
2 changed files with 30 additions and 1 deletions

View File

@ -1,3 +1,30 @@
/*
* ============================================================================
*
* Zombie:Reloaded
*
* File: zrtools.inc
* Type: Include
* Description: API for ZR Tools.
*
* Copyright (C) 2009 Greyscale
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*
* ============================================================================
*/
#if defined _zrtools_included #if defined _zrtools_included
#endinput #endinput
#endif #endif

View File

@ -820,7 +820,7 @@ public Action:ConfigReloadCommand(client, argc)
ConfigGetConfigPath(config, path, sizeof(path)); ConfigGetConfigPath(config, path, sizeof(path));
// Format log message // Format log message
Format(logmessage, sizeof(logmessage), "Admin \"%L\" reloaded config file \"%s\". (zr_config_reload)", client); Format(logmessage, sizeof(logmessage), "Admin \"%L\" reloaded config file \"%s\". (zr_config_reload)", client, path);
// If file isn't loaded then tell client, then stop. // If file isn't loaded then tell client, then stop.
if (!loaded) if (!loaded)
@ -873,6 +873,8 @@ public Action:ConfigReloadAllCommand(client, argc)
// Log action to game events. // Log action to game events.
LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_Config, "Reload All Config", "Admin \"%L\" reloaded all config files.", client); LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_Config, "Reload All Config", "Admin \"%L\" reloaded all config files.", client);
return Plugin_Handled;
} }
/** /**