how make anti team killing?
#1

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?
Reply
#2

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.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)