removes the ability to consume a health pickup if over 100 health - Damen

This commit is contained in:
Stev 2019-03-01 22:21:06 +00:00
parent 3e410a67c4
commit 41055198ad

View File

@ -133,8 +133,8 @@ hook OnPlayerPickUpDynPickup( playerid, pickupid )
// Health Pickups // Health Pickups
if ( pickupid == g_HealthPickup ) { if ( pickupid == g_HealthPickup ) {
SetPlayerHealth( playerid, 100.0 ); new Float: health;
return 1; if ( GetPlayerHealth( playerid, health ) <= 100 ) return SetPlayerHealth( playerid, 100.0 );
} }
// ignore if theres a delay // ignore if theres a delay