Does this prevent damage of any type?
#1

Does this prevent damage of any type?

Cause i wan't 0 Damage to be caused with any weapon or anything. I'm making a custom damage script.

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(hittype || weaponid || playerid != INVALID_PLAYERID || hitid)
    {
        return 0;
    }
    return 1;
}
Reply
#2

no will not work for melee grenades and rpg's

use OnPlayerTakeDamage instead
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)