Improved handling of invalid handle errors (maybe not fixed). Added a debug switch and a log function. Added debug messages on zspawn. Fixed zr_spawn not spawning spectactors (when using @all).
This commit is contained in:
@ -202,3 +202,17 @@ bool:IsClientPlayer(client)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
ZR_DebugPrintToConsole(client, String:message[])
|
||||
{
|
||||
if (client)
|
||||
{ /* Client console */
|
||||
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