Preventing death
#1

Hi, so I'm researching and trying different things in order to make this work.

I am attempting to prevent characters from dying at all, in order to make my custom damage system work.

However, I have yet to find something that fully disables death.

Currently I have this in my script:
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:pHealth;
    GetPlayerHealth(playerid, pHealth);
    if(pHealth < 10000.0)
        SetPlayerHealth(playerid, 10000.0);
   
    return 1;
}
That should stop the player from reaching a health below 10,000. It does indeed work with bullets, it works with fall damage, being ran over by cars etc etc etc. What it does not work with, however, is blowing up inside vehicles, as well as fall damage when wearing a parachute.

Does anyone here know any good way of preventing death in these cases?

EDIT: Oops, just realized I posted in Scripting Discussion, when I meant to post it in scripting help. You so stupid Ceathor
Reply


Messages In This Thread
Preventing death - by Ceathor - 16.03.2014, 19:14
Re: Preventing death - by CuervO - 16.03.2014, 20:23
Re: Preventing death - by Ceathor - 17.03.2014, 12:06
Re: Preventing death - by doreto - 17.03.2014, 12:19
Re: Preventing death - by CuervO - 17.03.2014, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)