Weapon Damage Changed
#3

I'm not sure if this will work...
pawn Код:
public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid )
{
    new Float:h;
    if (weaponid == 24)
    {
        if (amount >= 50)
        {
            GetPlayerHealth(playerid, h);
            SetPlayerHealth(playerid, h + 25.0);
        }
    }
    return 1;
}
This should increase the health by 25.0 whenever deagle causes more than or equal to 50 damage..
Reply


Messages In This Thread
Weapon Damage Changed - by lwilson - 01.06.2014, 08:06
Re: Weapon Damage Changed - by Mihaitza97 - 01.06.2014, 08:29
Re: Weapon Damage Changed - by SyntaxQ - 01.06.2014, 08:33
Re : Weapon Damage Changed - by Sc0tt - 01.06.2014, 08:36
Re: Weapon Damage Changed - by Lordzy - 01.06.2014, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)