Player's armour refills to 100 when taking damage
#1

When a player has armour and it gets near low and a player shoots them it sets their armour to 100 again, i dont know whats causing this but here is my onplayertakedamage

Code:
	if(weaponid == 24) // DEAGLE
	{

  		if (armour > 3.0)
  		{
     		SetPlayerArmour(playerid, armour-45.0);
  		}
  		else if (armour < 4.0)
  		{
     		SetPlayerArmour(playerid, 0);
  		}
    	if (health > 3.0 && armour < 1)
  		{
     		SetPlayerHealth(playerid, health-27.0);
  		}
    	else if (health < 3.0 && armour < 1)
     	{
       		SetPlayerHealth(playerid, 0.0);
  		}
 	}
it happens with all guns but all the weaponids are the same layout as this above.
Reply


Messages In This Thread
Player's armour refills to 100 when taking damage - by Matical - 16.06.2016, 04:26
Re: Player's armour refills to 100 when taking damage - by Dayrion - 16.06.2016, 04:54
Re: Player's armour refills to 100 when taking damage - by xTURBOx - 16.06.2016, 06:14
Re: Player's armour refills to 100 when taking damage - by Nin9r - 16.06.2016, 08:01
Re: Player's armour refills to 100 when taking damage - by Vince - 16.06.2016, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)