hotfixes for arresting and dropweapon

This commit is contained in:
Damen 2019-01-27 18:22:06 -05:00
parent ca0c93bb37
commit 199d7734d5
2 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ function BreakPlayerCuffsAttempt( playerid ) return BreakPlayerCuffs( playerid )
stock AwardNearestLEO( playerid, reason )
{
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID )
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID || GetPlayerWantedLevel( playerid ) < 2 )
return false;
new

View File

@ -432,7 +432,7 @@ stock RemoveSpecificPlayerWeapon( playerid, weaponid, bool:createpickup )
GetPlayerWeaponData( playerid, iSlot, iWeaponID[ iSlot ], iWeaponAmmo[ iSlot ] );
}
if ( createpickup )
if ( createpickup && iCurrentWeapon == iWeapon )
{
new
Float: X, Float: Y, Float: Z;