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:
parent
cfdedce362
commit
2904c87b62
@ -1123,7 +1123,6 @@ static cell_t _ShowActivity(IPluginContext *pContext,
|
|||||||
{
|
{
|
||||||
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(i);
|
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(i);
|
||||||
if (!pPlayer->IsInGame()
|
if (!pPlayer->IsInGame()
|
||||||
|| pPlayer->IsFakeClient()
|
|
||||||
|| (display_in_chat && i == client))
|
|| (display_in_chat && i == client))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
@ -1250,7 +1249,6 @@ static cell_t _ShowActivity2(IPluginContext *pContext,
|
|||||||
{
|
{
|
||||||
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(i);
|
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(i);
|
||||||
if (!pPlayer->IsInGame()
|
if (!pPlayer->IsInGame()
|
||||||
|| pPlayer->IsFakeClient()
|
|
||||||
|| i == client)
|
|| i == client)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user