03.11.2009, 17:01
pawn Код:
if(gTeam[playerid] == gTeam[killerid])
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(killerid,X,Y,Z);
CreateExplosion(X,Y,Z,7,20);
SetPlayerHealth(killerid,0);
GameTextForPlayer(killerid,"~r~ Do not Team Kill",3000,1);
}
And if you want that when you shoot the player , health does not go down then you dont have to do anything because as you mentioned above that you already have teams defined , so they cant kill each other already