added CIA detection on OnPlayerTakePlayerDamage, fixes vehicle CIA blip issues.

This commit is contained in:
Steven Howard 2018-09-18 19:37:52 +01:00
parent a5679e5d9d
commit fee1305492

View File

@ -5528,6 +5528,9 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) ) if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) )
return 0; 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 // alert admins
new new
attack_difference = GetTickCount( ) - p_PlayerAltBindTick[ playerid ]; attack_difference = GetTickCount( ) - p_PlayerAltBindTick[ playerid ];