Health / Armour addition
#6

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
It's not a command... Anyway, here:
pawn Код:
stock GivePlayerArmour(playerid, Float:armour)
{
    new Float:current_armour;
    GetPlayerArmour(playerid, current_armour);

    if((current_armour + armour) > 100.0)
    {
        current_armour = 100.0;
        armour = 0.0;
    }

    SetPlayerArmour(playerid, (current_armour + armour));
    return 1;
}
Thanks!
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)