removes the ability to consume a health pickup if over 100 health - Damen
This commit is contained in:
parent
3e410a67c4
commit
41055198ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user