From fee1305492d5267da2d973d746885047edab0f14 Mon Sep 17 00:00:00 2001 From: Steven Howard Date: Tue, 18 Sep 2018 19:37:52 +0100 Subject: [PATCH] added CIA detection on OnPlayerTakePlayerDamage, fixes vehicle CIA blip issues. --- gamemodes/sf-cnr.pwn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 0017111..04799a3 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -5528,6 +5528,9 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) ) return 0; + 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; + // alert admins new attack_difference = GetTickCount( ) - p_PlayerAltBindTick[ playerid ];