OnPlayerTakeDamage don't work with sniper
#1

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?

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(weaponid==WEAPON_SNIPER)
    {
        SetPlayerHealth(playerid,0.0);
    }
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)