Does this prevent damage of any type? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Does this prevent damage of any type? (
/showthread.php?tid=654271)
Does this prevent damage of any type? -
SeanDenZYR - 25.05.2018
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;
}
Re: Does this prevent damage of any type? -
Lokii - 25.05.2018
no will not work for melee grenades and rpg's
use
OnPlayerTakeDamage instead