add back check to see if player is in vehicle ... for death bug
This commit is contained in:
parent
df82156372
commit
278f3f7c6b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user