alert passive player he cannot pick up dropped weapons

This commit is contained in:
Lorenc Pekaj 2018-11-13 16:05:58 +11:00
parent 5f12c4a15e
commit 81f3e5a768

View File

@ -138,15 +138,15 @@ hook OnPlayerPickUpDynPickup( playerid, pickupid )
if ( p_PlayerPickupDelay[ playerid ] > GetServerTime( ) )
return 1;
// if player is in passive mode cannot pickup weapons, ammo
if ( IsPlayerPassive( playerid ) )
return 1;
// Player Drops
foreach ( new dropid : weapondrop )
{
if ( g_weaponDropData[ dropid ] [ E_PICKUP ] == pickupid )
{
// if player is in passive mode cannot pickup weapons, ammo
if ( IsPlayerPassive( playerid ) )
return ShowPlayerHelpDialog( playerid, 2500, "You cannot pick up dropped items in ~r~passive mode." );
if ( g_weaponDropData[ dropid ] [ E_WEAPON_ID ] == WEAPON_HEALTH )
{
new