Need help Bro Pro. -
Код:
I am using this under OnPlayerTakeDamage.
new Float:HP,Float:A;
GetPlayerHealth(playerid, HP);
GetPlayerArmour(playerid,A);
if(A > 0.0)
{
switch(weaponid)
{
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,42: SetPlayerArmour(playerid, A-amount);
}
}
if(A <= 0.0)
{
switch(weaponid)
{
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,42: SetPlayerHealthEx (playerid, HP-amount);
}
}
The problem which i am getting is it refill armour or health rather than decreasing it.. Also player getting damage in Health before Armour..... why ?
The armour is decrease then increase same with health .
Re: Need help Bro Pro. -
Re: Need help Bro Pro. -
The problem what i getting when some budy shoot some one he fist lose armour ammount then he get that amount..