zspawn confirmed fixed. Added debug messages on OnClientDisconnect and PlayerDeath.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include <market>
|
||||
|
||||
#define VERSION "2.5.1.10"
|
||||
#define VERSION "2.5.1.11"
|
||||
|
||||
#include "zr/zombiereloaded"
|
||||
#include "zr/global"
|
||||
@ -179,10 +179,18 @@ public OnClientDisconnect(client)
|
||||
|
||||
PlayerLeft(client);
|
||||
|
||||
new debug_val = GetConVarInt(gCvars[CVAR_DEBUG]);
|
||||
new String:debug_msg[64];
|
||||
|
||||
for (new x = 0; x < MAXTIMERS; x++)
|
||||
{
|
||||
if (tHandles[client][x] != INVALID_HANDLE)
|
||||
{
|
||||
if (debug_val > 1)
|
||||
{
|
||||
Format(debug_msg, sizeof(debug_msg), "PlayerDeath - Killing timer %i with handle %x.", x, tHandles[client][x]);
|
||||
ZR_DebugPrintToConsole(0, debug_msg);
|
||||
}
|
||||
KillTimer(tHandles[client][x]);
|
||||
tHandles[client][x] = INVALID_HANDLE;
|
||||
}
|
||||
|
@ -434,10 +434,18 @@ public Action:PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
|
||||
}
|
||||
}
|
||||
|
||||
new debug_val = GetConVarInt(gCvars[CVAR_DEBUG]);
|
||||
new String:debug_msg[64];
|
||||
|
||||
for (new x = 0; x < MAXTIMERS; x++)
|
||||
{
|
||||
if (tHandles[index][x] != INVALID_HANDLE)
|
||||
{
|
||||
if (debug_val > 1)
|
||||
{
|
||||
Format(debug_msg, sizeof(debug_msg), "PlayerDeath - Killing timer %i with handle %x.", x, tHandles[index][x]);
|
||||
ZR_DebugPrintToConsole(0, debug_msg);
|
||||
}
|
||||
KillTimer(tHandles[index][x]);
|
||||
tHandles[index][x] = INVALID_HANDLE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user