Fixes player quit to avoid
No longer awards nearest cop is criminal is in event
This commit is contained in:
parent
ca9af55c37
commit
80b252e9fb
@ -437,7 +437,11 @@ stock BreakPlayerCuffs( playerid )
|
|||||||
|
|
||||||
stock AwardNearestLEO( playerid, reason )
|
stock AwardNearestLEO( playerid, reason )
|
||||||
{
|
{
|
||||||
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID || GetPlayerWantedLevel( playerid ) < 2 || IsPlayerDead( playerid ) )
|
#if defined __cloudy_event_system
|
||||||
|
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID || GetPlayerWantedLevel( playerid ) < 2 || ReturnPlayerHealth( playerid ) <= 0 || IsPlayerInEvent( playerid ) )
|
||||||
|
#else
|
||||||
|
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID || GetPlayerWantedLevel( playerid ) < 2 || ReturnPlayerHealth( playerid ) <= 0 )
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
new Float: radius = ( IsPlayerInAnyVehicle( playerid ) ? 150.0 : 75.0 ); // If player is in a vehicle, increase radius due to ability to get farther quicker.
|
new Float: radius = ( IsPlayerInAnyVehicle( playerid ) ? 150.0 : 75.0 ); // If player is in a vehicle, increase radius due to ability to get farther quicker.
|
||||||
@ -500,4 +504,4 @@ hook OnPlayerUpdateEx( playerid )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user