From 2904c87b6242bc6e8e69db9e8cff140d31071ace Mon Sep 17 00:00:00 2001 From: jason-e Date: Wed, 9 May 2018 03:13:49 -0500 Subject: [PATCH] Send ShowActivity messages to TV clients (#813) `ShowActivity` and related functions are used to inform all clients about the usage of admin commands (such as bans or mutes). These messages are not sent to any fake clients, however they _should_ be sent to SourceTV/GOTV fake clients because messages they receive are actually visible to broadcast viewers and in demos recorded with `tv_record`. Player chat messages as well as SM functions like `PrintToChat`/`PrintToChatAll` broadcast to TV clients, but `ShowActivity` does not. --- core/logic/smn_players.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 085be20a..17e2262f 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -1123,7 +1123,6 @@ static cell_t _ShowActivity(IPluginContext *pContext, { IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(i); if (!pPlayer->IsInGame() - || pPlayer->IsFakeClient() || (display_in_chat && i == client)) { continue; @@ -1250,7 +1249,6 @@ static cell_t _ShowActivity2(IPluginContext *pContext, { IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(i); if (!pPlayer->IsInGame() - || pPlayer->IsFakeClient() || i == client) { continue;