PDA

View Full Version : how make anti team killing?


UserName31
12/02/2014, 10:44 PM
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?

[KHK]Khalid
12/02/2014, 11:06 PM
http://wiki.sa-mp.com/wiki/SetPlayerTeam
http://forum.sa-mp.com/showthread.php?t=273529

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

GGW
13/02/2014, 04:19 AM
you have to set the player team :)

SetPlayerTeam(playerid,teamid);

like this ^^

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 ^^