further hotfix to dropweapon

This commit is contained in:
Damen 2019-01-27 20:16:21 -05:00
parent 76b49ebe4b
commit 52d26259ab

View File

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