SA-MP Forums Archive
Same Team Can't Fight - 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)
+--- Thread: Same Team Can't Fight (/showthread.php?tid=497177)



Same Team Can't Fight - AhmedMohamed - 25.02.2014

I made call of duty gamemode but i can't make that :
the players on same team can't fight or kill each other on the same team
how can i make it??


Re: Same Team Can't Fight - amirab - 25.02.2014

use SetPlayerTeam(playerid , team id or defined team name);


Re: Same Team Can't Fight - Beckett - 25.02.2014

SetPlayerTeam, check if their team is the same, OnPlayerTakeDamage, if the issuer is in the same team then don't let him take the damage.


Re: Same Team Can't Fight - amirab - 25.02.2014

oooo
on callbacks we should script a lot but
we can do easy way

Quote:

SetPlayerTeam