Low Health 20% > Injured.
#4

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new Float:hp;
    GetPlayerHealth(playerid,hp);
   
    if(hp <= 20) ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,0,1,1,1,1,1);
    return 1;
}
I'm afraid they'll zombie walk, or shoot, is there any stuff that can disable them from shooting or walking? Only disable, not remove the weapons.

Oh and how do I make it they will be normal (they can walk) after they have more than 20 health?

EDIT: Can I use TogglePlayerControllable to disable them from walking if they have below than 20 health?
Reply


Messages In This Thread
Low Health 20% > Injured. - by Uberanwar - 10.10.2013, 00:42
Re: Low Health 20% > Injured. - by xVIP3Rx - 10.10.2013, 00:46
Re: Low Health 20% > Injured. - by EiresJason - 10.10.2013, 00:51
Re: Low Health 20% > Injured. - by Uberanwar - 10.10.2013, 00:53
Re: Low Health 20% > Injured. - by EiresJason - 10.10.2013, 00:56
Re: Low Health 20% > Injured. - by xVIP3Rx - 10.10.2013, 00:56
Re: Low Health 20% > Injured. - by Sublime - 10.10.2013, 00:57
Re: Low Health 20% > Injured. - by EiresJason - 10.10.2013, 01:04
Re: Low Health 20% > Injured. - by Uberanwar - 10.10.2013, 01:07
Re: Low Health 20% > Injured. - by Pottus - 10.10.2013, 01:21

Forum Jump:


Users browsing this thread: 10 Guest(s)