added CIA detection on OnPlayerTakePlayerDamage, fixes vehicle CIA blip issues.
This commit is contained in:
parent
a5679e5d9d
commit
fee1305492
@ -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 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user