From e82ab2e4f31f820c95b7b704ff32e09effe15e6d Mon Sep 17 00:00:00 2001 From: Steven Howard Date: Tue, 18 Sep 2018 20:16:44 +0100 Subject: [PATCH] fixes http://forum.sfcnr.com/showthread.php?60150-CIA-blip-is-not-showing-even-though-he-s-already-dealing-damage --- gamemodes/sf-cnr.pwn | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 04799a3..767ce0f 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -5528,9 +5528,15 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) ) return 0; + // damaged player if ( p_Class[ playerid ] == CLASS_POLICE && p_inFBI{ playerid } && p_inCIA{ playerid } && !p_inArmy{ playerid } ) SetPlayerColor( playerid, setAlpha( COLOR_CIA, 0xFF ) ), p_VisibleOnRadar[ playerid ] = g_iTime + 2; + // shooter + if ( p_Class[ issuerid ] == CLASS_POLICE && p_inFBI{ issuerid } && p_inCIA{ issuerid } && !p_inArmy{ issuerid } ) + SetPlayerColor( issuerid, setAlpha( COLOR_CIA, 0xFF ) ), p_VisibleOnRadar[ issuerid ] = g_iTime + 2; + + // alert admins new attack_difference = GetTickCount( ) - p_PlayerAltBindTick[ playerid ];