Health / Armour addition
#4

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
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;
}
So if i have a limit of only 100 armour, then i have currently 60 armour, if i use this command, it will not over my limit?
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: 2 Guest(s)