14.09.2015, 22:16
Quote:
Well, i would like to make a headshot system.. if body part == 9 and weapon == 34 The player dies instantly. But using damageplayer in onplayerdamage callback will lead to endless loop (because damageplayer calls onplayerdamage)
|
pawn Code:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
if(bodypart == 9 && weapon == 34)
amount = 100.0;
return 1;
}