From 7197c3289be7fc53a8c3ba926531a244481b2c42 Mon Sep 17 00:00:00 2001 From: Steven Howard Date: Sat, 10 Nov 2018 09:56:47 +0000 Subject: [PATCH] passive players will not be able to pick up weapon, ammo and money drops. --- gamemodes/irresistible/cnr/features/weapon_drop.pwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/weapon_drop.pwn b/gamemodes/irresistible/cnr/features/weapon_drop.pwn index 395499d..776ef4c 100644 --- a/gamemodes/irresistible/cnr/features/weapon_drop.pwn +++ b/gamemodes/irresistible/cnr/features/weapon_drop.pwn @@ -133,6 +133,10 @@ 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 ) {