22.07.2014, 01:17
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(IsPlayerAimingTargetBodyPart(playerid, damagedid, 1))
{
PlayAudioStreamForPlayer(damageid, "https://www.dropbox.com/s/vo04bp91b70j0oh/firstblood.wav?dl=1");
GameTextForPlayer(damagedid, "~r~HEAD ~w~SHOT", 2000, 0);
SetPlayerHealth(damagedid, -1);
}
(esqueзam a public nгo fechada ela estб fechada no meu gamemode xD sу copiei uma parte dela!)