03.11.2009, 15:05
Code to disable Team Killing?
if(Team[playerid] == Team[killerid]) { //Do something here } return 1; }
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);
}
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);
}