ZR_PrintToAdminChat now checks for Admin_Generic flag

This commit is contained in:
Greyscale 2009-03-29 22:08:56 +02:00
parent a0276e5c14
commit 6555cdd778

View File

@ -175,7 +175,7 @@ stock ZR_PrintToAdminChat(String:message[])
Format(buffer, sizeof(buffer), "[ZR] %s", message); Format(buffer, sizeof(buffer), "[ZR] %s", message);
for (new client = 1; client < maxclients; client++) for (new client = 1; client < maxclients; client++)
{ {
if (IsClientConnected(client) && IsClientInGame(client) && GetUserAdmin(client) != INVALID_ADMIN_ID) if (IsClientConnected(client) && IsClientInGame(client) && GetAdminFlag(GetUserAdmin(client), Admin_Generic))
{ {
PrintToChat(client, buffer); PrintToChat(client, buffer);
} }