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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user