Fixed incorrect weapon name used in group restictions. Improved logging system (bit flags instead of on/off). CVAR zr_debug changed to zr_log. Added flag configuration to zombie admin menu. Fixed index out of bounds error in anticamp module.
This commit is contained in:
@ -31,11 +31,18 @@ enum ZTeam
|
||||
#define Game_Commencing 16 // Game Commencing!
|
||||
|
||||
#define DXLEVEL_MIN 90
|
||||
|
||||
#define DEFAULT_FOV 90
|
||||
|
||||
new bool:market;
|
||||
#define LOG_CORE_EVENTS 1
|
||||
#define LOG_GAME_EVENTS 2
|
||||
#define LOG_PLAYER_COMMANDS 4
|
||||
#define LOG_DEBUG 8
|
||||
#define LOG_DEBUG_DETAIL 16
|
||||
#define LOG_DEBUG_MAX_DETAIL 32
|
||||
#define LOG_TO_ADMINS 64
|
||||
#define LOG_TO_CLIENT 128
|
||||
|
||||
new bool:market;
|
||||
new dxLevel[MAXPLAYERS+1];
|
||||
|
||||
new bool:zombieSpawned;
|
||||
@ -212,17 +219,3 @@ bool:IsClientPlayer(client)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
ZR_DebugPrintToConsole(client, String:message[])
|
||||
{
|
||||
if (client)
|
||||
{ /* Client console */
|
||||
if (IsClientInGame(client)) PrintToConsole(client, message);
|
||||
LogMessage("Debug log (client %i) -- %s", client, message);
|
||||
}
|
||||
else
|
||||
{ /* Server console */
|
||||
PrintToServer(message);
|
||||
LogMessage("Debug log (client %i) -- %s", client, message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user