add back check to see if player is in vehicle ... for death bug

This commit is contained in:
Lorenc Pekaj 2018-10-10 11:26:53 +11:00
parent df82156372
commit 278f3f7c6b

View File

@ -588,7 +588,7 @@ hook OnPlayerDeath( playerid, killerid, reason )
p_LastDeath[ playerid ] = server_time; p_LastDeath[ playerid ] = server_time;
// Died in Vehicle // Died in Vehicle
if ( AC_IsPlayerSpawned( playerid ) ) if ( GetPlayerVehicleID( playerid ) && AC_IsPlayerSpawned( playerid ) )
{ {
if( ( GetTickCount( ) - p_LastTookDamage[ playerid ] ) > 2500 ) { if( ( GetTickCount( ) - p_LastTookDamage[ playerid ] ) > 2500 ) {
p_LastDamageIssuer[ playerid ] = INVALID_PLAYER_ID, p_LastWeaponIssuer[ playerid ] = 51; p_LastDamageIssuer[ playerid ] = INVALID_PLAYER_ID, p_LastWeaponIssuer[ playerid ] = 51;