Detect explosion or burn
#1

Can you detect it when it is hurt by fire or an explosion?

+ rep help.
Reply
#2

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(weaponid == 37 && playerid != issuerid) // If flamethrougher
    {
       //do something
    }
    return 1;
}
Reply
#3

As far as i know, taking damage from explosions count as "self inflicted" and can not be detected (yet).
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=490436

Has one for if the player is burning.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)