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

@ -820,7 +820,7 @@ public Action:ConfigReloadCommand(client, argc)
ConfigGetConfigPath(config, path, sizeof(path));
// 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 (!loaded)
@ -873,6 +873,8 @@ public Action:ConfigReloadAllCommand(client, argc)
// Log action to game events.
LogEvent(false, LogType_Normal, LOG_GAME_EVENTS, LogModule_Config, "Reload All Config", "Admin \"%L\" reloaded all config files.", client);
return Plugin_Handled;
}
/**