11.02.2014, 21:30
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) {
if ( bodypart == BODY_PART_HEAD && weaponid >= 22 && weaponid <= 34 ) {
SetPlayerHealth(damagedid, 0.0);
GameTextForPlayer(playerid, "~r~Headshot!", 1000, 4);
}
return 1;
}