14.02.2015, 04:55
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
}
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
GameTextForPlayer(playerid, "PWNED", 5000, 3);
GameTextForPlayer(issuerid, "[HEADSHOT]", 5000, 3);
}
return 1;
}