Made a basic weapon API, fixed SetPlayerAlpha function, moved logging to its own file (had to be done now, it was hard to find before), made a separate cvar to disable logging fully.

This commit is contained in:
Greyscale
2009-04-20 05:43:20 +02:00
parent 41153af5f4
commit 7111a8c594
17 changed files with 377 additions and 243 deletions

View File

@ -17,7 +17,7 @@
#define VERSION "3.0-dev"
// Core include.
// Core include
#include "zr/zombiereloaded"
// External api (not done)
@ -26,8 +26,8 @@
// Cvars (core)
#include "zr/cvars"
// Log (TODO)
// #include "zr/log"
// Log (core)
#include "zr/log"
// Translations (core)
#include "zr/translation"
@ -196,9 +196,9 @@ public OnConfigsExecuted()
{
ServerCommand("exec %s", mapconfig);
if (LogFlagCheck(LOG_CORE_EVENTS))
if (LogCheckFlag(LOG_CORE_EVENTS))
{
LogMessage("Executed map config file: %s", mapconfig);
LogMessageFormatted(-1, "", "", "Executed map config file: %s.", LOG_FORMAT_TYPE_SIMPLE, mapconfig);
}
}