Disabling damange once reaching a certain amount
#5

I haven't tested it ingame, but it should work I guess.

PHP Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    new 
Float:HP;
    
GetPlayerHealth(playeridHP);
    if(
HP == 5)
    {
        
SetPlayerHealth(playerid5);//If this doesn't work, you could set the player's health -1 and create a timer to set it back to 5.
    
}
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)