10.08.2014, 21:23
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(playerid > MAX_PLAYERS || issuerid > MAX_PLAYERS || playerid == INVALID_PLAYER_ID || issuerid == INVALID_PLAYER_ID) return 1;
if(PlayerInfo[playerid][pMember] == 8 && weaponid == 34 && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
}
return 1;
}