HELP:Team Killing
#4

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart)
{
if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid))
{
                if((weaponid == 23 || weaponid == 33 || weaponid == 34) && bodypart == 9) 
                {
                    SetPlayerHealth(playerid, 0.0);
                    GameTextForPlayer(issuerid, "~r~Headshot", 3000, 3);
                    GameTextForPlayer(playerid, "~r~Headshot", 3000, 3);
                }
}else {GameTextForPlayer(issuerid, "~r~Team killing not allowed", 3000, 3);}
return 1;
}
You can use this code small and better ..headshot. if you find any bug tell me
Reply


Messages In This Thread
HELP:Team Killing - by Mijata - 25.01.2015, 11:13
Re: HELP:Team Killing - by MBilal - 25.01.2015, 11:25
Re: HELP:Team Killing - by Mijata - 25.01.2015, 11:27
Re: HELP:Team Killing - by MBilal - 25.01.2015, 11:29
Re: HELP:Team Killing - by Mijata - 25.01.2015, 11:30
Re: HELP:Team Killing - by MBilal - 25.01.2015, 11:37
Re: HELP:Team Killing - by Mijata - 25.01.2015, 13:23
Re: HELP:Team Killing - by GGW - 25.01.2015, 13:51
Re: HELP:Team Killing - by Mijata - 25.01.2015, 13:53
Re: HELP:Team Killing - by Mijata - 25.01.2015, 14:20

Forum Jump:


Users browsing this thread: 2 Guest(s)