Disabling some weapon damages?
#2

Quote:
Originally Posted by arakuta
Посмотреть сообщение
And here's finally my question: There is any way to disable OnPlayerTakeDamage with normal weapons?
Not sure if i fully understand you, but can't you just check if the weapon is a "normal" weapon and return if so?

pawn Код:
public OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid)
{
    if( is_normal_weapon_check( weaponid ) )
        return 1;

    if(EnableDamage[weaponid] == false)
        amount = 0;
    return 1;
}
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: 3 Guest(s)