From d3db7d1117e7aee5ae44ef6756999db8a0b75aa2 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sat, 29 Sep 2018 21:41:11 +1000 Subject: [PATCH] passive mode bugfix --- gamemodes/sf-cnr.pwn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index ab569b9..dd2ce4b 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -25434,6 +25434,11 @@ stock ResetPlayerPassiveMode( playerid, bool: passive_disabled = false ) function PassiveMode_Reset( playerid, time_left ) { + // if you happen to die then have a shot synced ... just reset normally + if ( GetPlayerState( playerid ) == PLAYER_STATE_WASTED ) { + return ResetPlayerPassiveMode( playerid ); + } + if ( p_WantedLevel[ playerid ] > 0 || p_Class[ playerid ] != CLASS_CIVILIAN || -- time_left <= 0 ) { ResetPlayerPassiveMode( playerid, .passive_disabled = true );