Health / Armour addition
#2

Use "GivePlayerArmour(playerid, 10.0);" and it will give the player 60.0 armour if the player has 50.0 armour.
pawn Код:
stock GivePlayerArmour(playerid, Float:armour)
{
    new Float:current_armour;
    GetPlayerArmour(playerid, current_armour);

    SetPlayerArmour(playerid, (current_armour + armour));
    return 1;
}
Reply


Messages In This Thread
Health / Armour addition - by eikzdej - 30.03.2016, 04:22
Re: Health / Armour addition - by SickAttack - 30.03.2016, 04:30
Re: Health / Armour addition - by itsCody - 30.03.2016, 04:30
Re: Health / Armour addition - by eikzdej - 30.03.2016, 04:47
Re: Health / Armour addition - by SickAttack - 30.03.2016, 04:59
Re: Health / Armour addition - by eikzdej - 30.03.2016, 05:45
Re: Health / Armour addition - by iKevin - 30.03.2016, 06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)