From 3b36340f3e8a49ed8f937ccea9d53035a7785edc Mon Sep 17 00:00:00 2001 From: Cloudy <36423427+meCloudy@users.noreply.github.com> Date: Sun, 2 Jun 2019 01:11:26 +0300 Subject: [PATCH] Update for /viewpbchat Sends a message to all admins who are viewing pb chats. --- gamemodes/irresistible/cnr/features/paintball.pwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/paintball.pwn b/gamemodes/irresistible/cnr/features/paintball.pwn index 54b10a4..a35c8d7 100644 --- a/gamemodes/irresistible/cnr/features/paintball.pwn +++ b/gamemodes/irresistible/cnr/features/paintball.pwn @@ -417,6 +417,10 @@ CMD:p( playerid, params[ ] ) else { SendClientMessageToPaintball( id, -1, ""COL_GREY" %s(%d):"COL_WHITE" %s", ReturnPlayerName( playerid ), playerid, msg ); + + foreach ( new i : Player ) if ( ( p_AdminLevel[ i ] >= 5 || IsPlayerUnderCover( i ) ) && p_TogglePBChat{ i } == true ) { + SendClientMessageFormatted( i, -1, ""COL_GREY" %s(%d):"COL_WHITE" %s", id, ReturnPlayerName( playerid ), playerid, msg ); + } } return 1; }