Made a switch for printing suicide attempts to admin chat. Added suicide response text to client chat too, not just the console.

This commit is contained in:
richard
2008-11-18 01:02:23 +01:00
parent c49fcb2142
commit 298dec378c
5 changed files with 32 additions and 2 deletions

View File

@ -115,4 +115,17 @@ stock ZR_ReplyToCommand(client, any:...)
FormatTextString(phrase, sizeof(phrase));
ReplyToCommand(client, phrase);
}
stock ZR_PrintToAdminChat(String:message[])
{
decl String:buffer[192];
Format(buffer, sizeof(buffer), "[ZR] %s", message);
for (new client = 1; client < maxclients; client++)
{
if (IsClientConnected(client) && IsClientInGame(client) && GetUserAdmin(client) != INVALID_ADMIN_ID)
{
PrintToChat(client, buffer);
}
}
}