13.09.2012, 12:29
hello everyone, well, here I was thinking of trying something and then I remembered this callback
but I found a problem, it does not work with sniper ... works with other weapons, but not with sniper. why?
this is bug?
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
but I found a problem, it does not work with sniper ... works with other weapons, but not with sniper. why?
this is bug?
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(weaponid==WEAPON_SNIPER)
{
SetPlayerHealth(playerid,0.0);
}
return 1;
}