SA-MP Forums Archive
Same team members can't shoot you. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Same team members can't shoot you. (/showthread.php?tid=166830)



Same team members can't shoot you. - Andrizzle - 10.08.2010

Hey everyone, i've seen on a couple other servers, that there is an anti-Team kill, can anyone help me out here, how to make it so when your teammates shoot you, your health does not go down.
Thanks.


Re: Same team members can't shoot you. - zallomallo - 10.08.2010

SetPlayerTeam(playerid, teamid);


Re: Same team members can't shoot you. - PotH3Ad - 10.08.2010

Use SetPlayerTeam, player's in the same team will not be able to do damage to each other.

pawn Код:
SetPlayerTeam(playerid, teamid);



Re: Same team members can't shoot you. - Andrizzle - 10.08.2010

*Bump* Oh, stupid me. Thanks alot guys!