09.04.2014, 03:31
You can easily use SetPlayerTeam(playerid, id); to make an anti team kill.
Example:
Class 1 and 2 can't kill each other, class 1 and 2 can kill class 3, class 3 can kill class 1 and 2.
255 = Null.
Example:
pawn Код:
if(classid == 0)
{
SetPlayerTeam(playerid, 1);
}
if(classid == 1)
{
SetPlayerTeam(playerid, 1);
}
if(classid == 3)
{
SetPlayerTeam(playerid, 255);
}
255 = Null.