From 81f3e5a768265458b4b4c76bfb05401f40d47b17 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Tue, 13 Nov 2018 16:05:58 +1100 Subject: [PATCH] alert passive player he cannot pick up dropped weapons --- gamemodes/irresistible/cnr/features/weapon_drop.pwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/weapon_drop.pwn b/gamemodes/irresistible/cnr/features/weapon_drop.pwn index 43381f7..e2fc778 100644 --- a/gamemodes/irresistible/cnr/features/weapon_drop.pwn +++ b/gamemodes/irresistible/cnr/features/weapon_drop.pwn @@ -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