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
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user