SA-MP Forums Archive
OnPlayerGiveDamage Teams? - 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: OnPlayerGiveDamage Teams? (/showthread.php?tid=333510)



OnPlayerGiveDamage Teams? - Admigo - 11.04.2012

Heey all,

How can i make like if team 1 and team 2 hit team 3 they get wanted?
I tried this code:
Код:
//onplayergivedamage
if(gTeam[playerid]==TEAM_1 || gTeam[playerid]==TEAM_2 && gTeam[damagedid]==TEAM_COP)
But dont work because if team 1 hits team 2 ,team 1 get wanted.

Thanks Admigo