Team Kill
#8

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);
}
Add this under OnPlayerDeath

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
Reply


Messages In This Thread
Team Kill - by Ironboy500 - 03.11.2009, 15:05
Re: Team Kill - by Lajko1 - 03.11.2009, 15:10
Re: Team Kill - by Sergei - 03.11.2009, 15:15
Re: Team Kill - by Ironboy500 - 03.11.2009, 16:45
Re: Team Kill - by gemadon - 03.11.2009, 16:47
Re: Team Kill - by Peter_Corneile - 03.11.2009, 16:58
Re: Team Kill - by Ironboy500 - 03.11.2009, 16:59
Re: Team Kill - by Peter_Corneile - 03.11.2009, 17:01
Re: Team Kill - by MadeMan - 03.11.2009, 17:03
Re: Team Kill - by Ironboy500 - 03.11.2009, 17:20

Forum Jump:


Users browsing this thread: 3 Guest(s)