Headshot help
#6

Quote:
Originally Posted by TopShooter
Посмотреть сообщение
You need the a_samp include version which has the "BodyPart"
None does.

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);
         }
    }
}
Reply


Messages In This Thread
Headshot help - by SaiyanZ - 21.04.2016, 16:38
Re: Headshot help - by J0sh... - 21.04.2016, 16:41
Re: Headshot help - by oMa37 - 21.04.2016, 16:42
Re: Headshot help - by SaiyanZ - 21.04.2016, 16:56
Re: Headshot help - by oMa37 - 21.04.2016, 17:08
Re: Headshot help - by iKevin - 21.04.2016, 17:09
Re: Headshot help - by SaiyanZ - 21.04.2016, 17:15
Re: Headshot help - by iKevin - 21.04.2016, 17:18
Re: Headshot help - by oMa37 - 21.04.2016, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)