fix potential passive bug

This commit is contained in:
Lorenc Pekaj 2018-10-01 14:57:09 +10:00
parent 0f4aee7915
commit b461ee83e6

View File

@ -23344,7 +23344,7 @@ stock SetPlayerPassiveMode( playerid )
ResetPlayerPassiveMode( playerid );
// place label
if ( ! IsPlayerInPaintBall( playerid ) && GetPlayerClass( playerid ) != CLASS_POLICE ) {
if ( ! p_WantedLevel[ playerid ] && ! IsPlayerInPaintBall( playerid ) && GetPlayerClass( playerid ) != CLASS_POLICE ) {
p_PassiveModeLabel[ playerid ] = CreateDynamic3DTextLabel( "Passive Mode", COLOR_GREEN, 0.0, 0.0, -0.6, 15.0, .attachedplayer = playerid );
TextDrawShowForPlayer( playerid, g_PassiveModeTD );
}