Samp onplayertakedamage bodypart accuracy
#6

I think it can't be done. I will try to disable it when the player is using a anim.
I do have another question actually.
When the player buys armor and equips it, it should be that the bullet will not hit the torso.
I can do this like this(working):
PHP код:
if(Inventory[playerid][KevlarEquip] == 0;
        {
            if (
GetPlayerState(playerid) != PLAYER_STATE_WASTED)
             {
                
format(str,sizeof(str),"%s(%i) groans in pain from the bullet that pierced his chest and fell on the ground.",PlayerName(playerid),playerid);
                
SendNearbyMessage(playerid,30.0,str,ORANGE);
                  
ApplyAnimation(playerid"SWEET""Sweet_injuredloop"4.1,1,0,0,0,0,1);
                  
BodyPart[playerid][Torso] = 1;
                   
BodyPart[playerid][Injured] = 1;
                
SendClientMessage(playerid,LRED,"You are slowly starting to die, you can try to get a medic or accept your death with /acceptdeath");
              }
          } 
But the part which i am stuck at, is on how do i set Inventory[playerid][KevlarEquip] to 0 when the player's armor has been gone? not by unequiping it, but by getting shot. Is there a way to getplayerarmour or something?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)