Author Topic: Headshot's with frindlyfire 1  (Read 1090 times)

eXe^

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-1
  • Odium
    • View Profile
    • Desert Storm Clan
Headshot's with frindlyfire 1
« on: December 26, 2015, 03:20:14 pm »
Hey, I have some problem with my gamemode.
I have working headshots, and friendlifire 1 (can't kill the same team).
All is good, because i can't kill the same team, but i can kill my team shot in the head.
How to turn off this?

Code: [Select]
function onClientShot(p,w,b)
{
if (b == BODYPART_HEAD && w >= 3 && w <= 7)
{
pp.RemoveLimb(BODYPART_HEAD);
pp.Health = 1;
}
return 1;
}

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 276
  • Karma: +26/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: Headshot's with frindlyfire 1
« Reply #1 on: December 27, 2015, 04:23:51 pm »
Try this:
Code: [Select]
if (b == BODYPART_HEAD && w >= 3 && w <= 7 && p.Team != pp.Team )

 

© Liberty Unleashed Team.