Low Health 20% > Injured.
#5

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new Float:hp;
    GetPlayerHealth(playerid,hp);
   
    if(hp <= 20)
    {
        TogglePlayerControllable (playerid,0);
        ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,0,1,1,1,1,1);
        SetTimerEx("MoreThan20HP",1000,true,"i",playerid);
    }
    return 1;
}

forward MoreThan20HP(playerid);
public MoreThan20HP(playerid)
{
    new Float:hp;
    GetPlayerHealth(playerid,hp);

   if(hp >= 21) TogglePlayerControllable (playerid,1);

}
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: 6 Guest(s)