do not place random hits on passive players

This commit is contained in:
Lorenc Pekaj 2018-11-06 13:40:00 +11:00
parent 1139f4e92e
commit 54b05cf011

View File

@ -13255,7 +13255,7 @@ stock PlayerPlaceRandomHits( )
for ( new playerid = 0; playerid < sizeof( ignored_players ); playerid ++ )
{
// remove unconnected / npcs / aod / low score
if ( ! IsPlayerConnected( playerid ) || IsPlayerNPC( playerid ) || IsPlayerAdminOnDuty( playerid ) || GetPlayerScore( playerid ) < 25 || IsPlayerAFK( playerid ) )
if ( ! IsPlayerConnected( playerid ) || IsPlayerNPC( playerid ) || IsPlayerAdminOnDuty( playerid ) || GetPlayerScore( playerid ) < 25 || IsPlayerAFK( playerid ) || IsPlayerPassive( playerid ) )
{
ignored_players[ playerid ] = playerid;
continue;