From 278f3f7c6bc49575ff421ac5fd66420cae2df4c7 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 10 Oct 2018 11:26:53 +1100 Subject: [PATCH] add back check to see if player is in vehicle ... for death bug --- gamemodes/irresistible/anticheat/hitpoints.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/anticheat/hitpoints.pwn b/gamemodes/irresistible/anticheat/hitpoints.pwn index 18b4683..70d3664 100644 --- a/gamemodes/irresistible/anticheat/hitpoints.pwn +++ b/gamemodes/irresistible/anticheat/hitpoints.pwn @@ -588,7 +588,7 @@ hook OnPlayerDeath( playerid, killerid, reason ) p_LastDeath[ playerid ] = server_time; // Died in Vehicle - if ( AC_IsPlayerSpawned( playerid ) ) + if ( GetPlayerVehicleID( playerid ) && AC_IsPlayerSpawned( playerid ) ) { if( ( GetTickCount( ) - p_LastTookDamage[ playerid ] ) > 2500 ) { p_LastDamageIssuer[ playerid ] = INVALID_PLAYER_ID, p_LastWeaponIssuer[ playerid ] = 51;