Disabling some weapon damages?
#5

Not sure if this is what you're asking for, but try the following:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(weaponid == [ID of weapon you want no damage on]) SetPlayerHealth(playerid, HP);
    return 1;
}
This will do no damage with a specific weapon ID, you can add more weapon IDs with the same format.
Hope this is what you're asking for.
Reply


Messages In This Thread
Disabling some weapon damages? - by arakuta - 26.07.2013, 22:04
Re: Disabling some weapon damages? - by iggy1 - 27.07.2013, 07:53
Re: Disabling some weapon damages? - by NotIntegrated - 27.07.2013, 08:17
Re: Disabling some weapon damages? - by ReVo_ - 27.07.2013, 10:37
Re: Disabling some weapon damages? - by JimmyCh - 27.07.2013, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)