Steven Howard 2018-09-18 20:16:44 +01:00
parent fee1305492
commit e82ab2e4f3

View File

@ -5528,9 +5528,15 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) ) if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) )
return 0; return 0;
// damaged player
if ( p_Class[ playerid ] == CLASS_POLICE && p_inFBI{ playerid } && p_inCIA{ playerid } && !p_inArmy{ playerid } ) 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; 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 // alert admins
new new
attack_difference = GetTickCount( ) - p_PlayerAltBindTick[ playerid ]; attack_difference = GetTickCount( ) - p_PlayerAltBindTick[ playerid ];