How Can I Unaffected By The Explosion
#8

Oops, not sure where I got 'Vehicle Health' from...
You cannot exactly alter an explosion from a weapon, but this is something that should help...

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    switch(weaponid)
    {
        case 16, 35, 36, 39, 40, 51:
        {
            new Float:health;
            GetPlayerHealth(playerid, health);
            SetPlayerHealth(playerid, (health + amount));
        }
    }
    return 1;
}
This will work depending on the lagg between the server and the client. Hopefully many people won't die from excess explosions. I'm pretty sure this would work, I haven't exactly experimented with it.
Reply


Messages In This Thread
How Can I Unaffected By The Explosion - by XpDeviL - 26.07.2013, 01:14
Re: How Can I Unaffected By The Explosion - by Binx - 26.07.2013, 01:36
Re: How Can I Unaffected By The Explosion - by Threshold - 26.07.2013, 06:55
Re: How Can I Unaffected By The Explosion - by wumpyc - 26.07.2013, 07:04
Re: How Can I Unaffected By The Explosion - by XpDeviL - 26.07.2013, 09:03
Re: How Can I Unaffected By The Explosion - by JimmyCh - 26.07.2013, 09:07
Re: How Can I Unaffected By The Explosion - by XpDeviL - 26.07.2013, 09:13
Re: How Can I Unaffected By The Explosion - by Threshold - 26.07.2013, 09:23
Re: How Can I Unaffected By The Explosion - by DeMoX - 26.07.2013, 09:30
Re: How Can I Unaffected By The Explosion - by XpDeviL - 26.07.2013, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)