Disable Friendly Fire for ONLY their team?
#1

Okay so I am working on a script. So it is about a gang gamemode. And I have made different spawns and names for the gangs. But I want to Disable friendly fire for their own team mates, but they can shoot on other gang members.. For Example think that there are 3 gangs: Ballas, Groves, Vegaz... And I am a member of the Ballas gang, and when I shoot my Ballas members their health won't loose. But when I shoot a Groves or a Vegaz member, their health loose.. I want a script for that, please help me...

I already tried SetPlayerTeam on OnPlayerSpawn(playerid).. Here is that earlier script:
Код:
public OnPlayerSpawn(playerid)
{
      SetPlayerTeam(playerid,0);
      SetPlayerTeam(playerid,1);
      SetPlayerTeam(playerid,2);
      return 1;
}
But when I try with that script, when I shoot anyone with any of the skins, their health won't loose. I used 'AddPlayerClassEx' and put the Team number as in the SetPlayerTeam.... But please help me, I need that to Disable Fire only for their team mates..
Reply


Messages In This Thread
Disable Friendly Fire for ONLY their team? - by Captain_Mani - 16.03.2012, 10:23
Re: Disable Friendly Fire for ONLY their team? - by Captain_Mani - 16.03.2012, 10:51
Re: Disable Friendly Fire for ONLY their team? - by Babul - 16.03.2012, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)