passive mode bugfix

This commit is contained in:
Lorenc Pekaj 2018-09-29 21:41:11 +10:00
parent 0dc80c7bc0
commit d3db7d1117

View File

@ -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 );