From 41055198ad1f8be342c5ccf287ae2fb8bfc11397 Mon Sep 17 00:00:00 2001 From: Stev Date: Fri, 1 Mar 2019 22:21:06 +0000 Subject: [PATCH] removes the ability to consume a health pickup if over 100 health - Damen --- gamemodes/irresistible/cnr/features/weapon_drop.pwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/weapon_drop.pwn b/gamemodes/irresistible/cnr/features/weapon_drop.pwn index c0b8acd..ffb0440 100644 --- a/gamemodes/irresistible/cnr/features/weapon_drop.pwn +++ b/gamemodes/irresistible/cnr/features/weapon_drop.pwn @@ -133,8 +133,8 @@ hook OnPlayerPickUpDynPickup( playerid, pickupid ) // Health Pickups if ( pickupid == g_HealthPickup ) { - SetPlayerHealth( playerid, 100.0 ); - return 1; + new Float: health; + if ( GetPlayerHealth( playerid, health ) <= 100 ) return SetPlayerHealth( playerid, 100.0 ); } // ignore if theres a delay