21.04.2016, 17:09
(
Последний раз редактировалось iKevin; 21.04.2016 в 17:40.
)
None does.
What callback is this? OnPlayerTakeDamage?
What callback is this? OnPlayerTakeDamage?
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && weaponid == 23 && BODY_PART_HEAD == 9)
{
if (gTeam[playerid] == gTeam[issuerid])
{
SetPlayerHealth(playerid, -0);
SendClientMessage(issuerid, -1, "You can't headshot your teammates");
}
else
{
SetPlayerHealth(playerid, -100);
}
}
}


