16.04.2017, 01:10
Can you detect it when it is hurt by fire or an explosion?
+ rep help.
+ rep help.
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(weaponid == 37 && playerid != issuerid) // If flamethrougher
{
//do something
}
return 1;
}