Death system
#1

Hey guys, I tried to work on the death system, since the one I had in my GM was bugged. So I played with OnPlayerDeath and made it set the pos to the hospital. But whenever you die, it simply makes you spawn there, and then you die again and spawns at your HQ or at airport if not in Faction/Family. I was wondering, if i could make the person fall to the ground, so he could accept death? Or maybe make a system, so whenever your HP goes below a certain amount, it freezes him and apply's an injured animation, and when an EMS uses /heal on him (set's his HP over the amount) he will get unfrozen and will be able to walk away. Can somebody give me an example of how this could be done?
Reply
#2

pawn Код:
public SomeTimer(playerid)
{
    new Float:h;
    GetPlayerHealth(playerid.h);
    if(h < somevalue)
    {
        TogglePlayerControllable(playerid, false);
        ApplyAnimation(someanimation); // crckdeath perhaps?
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by THE_KNOWN
Посмотреть сообщение
pawn Код:
public SomeTimer(playerid)
{
    new Float:h;
    GetPlayerHealth(playerid.h);
    if(h < somevalue)
    {
        TogglePlayerControllable(playerid, false);
        ApplyAnimation(someanimation); // crckdeath perhaps?
    }
    return 1;
}
How would I make it unfreeze, after HP goes over the value, which is making him injured?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)