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
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