passive players with vehicles, can't do damage to others (stev)

This commit is contained in:
Lorenc Pekaj 2018-12-23 00:47:10 +11:00
parent 8d25432f6e
commit abe07e8be3

View File

@ -1467,6 +1467,10 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
if ( p_Class[ playerid ] == CLASS_POLICE && IsPlayerInAnyVehicle( playerid ) && GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 432 )
return 0;
// Passive players cannot damage with vehicles
if ( IsPlayerPassive( issuerid ) && IsPlayerInAnyVehicle( issuerid ) )
return 0;
// Anti RDM and gang member damage
if ( ! IsPlayerInEvent( playerid ) && ! IsPlayerInPaintBall( playerid ) && ! IsPlayerBoxing( playerid ) && ! IsPlayerDueling( playerid ) )
{