21.04.2016, 16:38
Hello, I need a little help in my headshot system, If it is right i made it, It was working fine without anti team headshot, But when i added that now i can't headshot, If i headshot my teammates they don't lose health thats good but now headshot is not working.
PHP код:
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);
No errors