onPlayerTakeDamage
#3

Yes , it is
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:health;//declaring
    GetPlayerHealth(playerid,health);//checking his health
    if (health < 30.0)//if his health less than 30 you can edit that.
    {
        SetPlayerHealth(playerid, 100);//re-heal him back to full health amount.
    }
    return 1;
}
EDIT: Ops sorry jefff.
Reply


Messages In This Thread
onPlayerTakeDamage - by audriuxxx - 25.12.2013, 19:59
Re: onPlayerTakeDamage - by Jefff - 25.12.2013, 20:05
Re: onPlayerTakeDamage - by SilentSoul - 25.12.2013, 20:05
Re: onPlayerTakeDamage - by audriuxxx - 25.12.2013, 20:15
Re: onPlayerTakeDamage - by Jefff - 25.12.2013, 20:20
Re: onPlayerTakeDamage - by audriuxxx - 25.12.2013, 20:23
Re: onPlayerTakeDamage - by Cypress - 25.12.2013, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)