SA-MP Forums Archive
how make anti team killing? - 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: how make anti team killing? (/showthread.php?tid=494352)



how make anti team killing? - UserName31 - 12.02.2014

hellow how i make when same team try to kill each other they cant? like when team grove shoot at team grove they will not loose health?


Re: how make anti team killing? - [KHK]Khalid - 12.02.2014

https://sampwiki.blast.hk/wiki/SetPlayerTeam
https://sampforum.blast.hk/showthread.php?tid=273529

You could of searched and found what you wanted instead of waiting minutes for an answer.


Re: how make anti team killing? - GGW - 13.02.2014

you have to set the player team

Quote:

SetPlayerTeam(playerid,teamid);

like this ^^

Quote:

if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid,0x55FF00FF);
SetPlayerTeam(playerid,1);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid,0xA000FFFF);
SetPlayerTeam(playerid,2);
}

thats a example by using gteam

i hope it helped ^^