SA-MP Forums Archive
[SOLVED]Anti Teammate Kill - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED]Anti Teammate Kill (/showthread.php?tid=106380)



[SOLVED]Anti Teammate Kill - Nameless303 - 02.11.2009

How can I avoid that teammkills are made?
I mean, when you hit a teammate, he doesn't loses health...

Please Help Me xD
Thanks


Re: Anti Teammate Kill - Sergei - 02.11.2009

Use teams, SetPlayerTeam.


Re: Anti Teammate Kill - Nameless303 - 03.11.2009

Quote:
Originally Posted by $ЂЯĢ
Use teams, SetPlayerTeam.
I am using teams... And now, how do I stop team killing?


Re: Anti Teammate Kill - Abernethy - 03.11.2009

Quote:
Originally Posted by Nameless303
Quote:
Originally Posted by $ЂЯĢ
Use teams, SetPlayerTeam.
I am using teams... And now, how do I stop team killing?
use gTeam & SetPlayerTeam on spawn. It can be quite inaccurate though.


Re: Anti Teammate Kill - Nameless303 - 03.11.2009

Quote:
Originally Posted by Abernethy♥
Quote:
Originally Posted by Nameless303
Quote:
Originally Posted by $ЂЯĢ
Use teams, SetPlayerTeam.
I am using teams... And now, how do I stop team killing?
use gTeam & SetPlayerTeam on spawn. It can be quite inaccurate though.
But i'm using teams...
And I have a part of the script where I can put something when it is teamkill;
Код:
	if(GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
	{
    //teamkill
	}
What do I have to put on the place of //teamkill?



Re: Anti Teammate Kill - Nameless303 - 03.11.2009

Quote:
Originally Posted by Nameless303
Quote:
Originally Posted by Abernethy♥
Quote:
Originally Posted by Nameless303
Quote:
Originally Posted by $ЂЯĢ
Use teams, SetPlayerTeam.
I am using teams... And now, how do I stop team killing?
use gTeam & SetPlayerTeam on spawn. It can be quite inaccurate though.
But i'm using teams...
And I have a part of the script where I can put something when it is teamkill;
Код:
	if(GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
	{
    //teamkill
	}
What do I have to put on the place of //teamkill?
Ive done it, if the player gets killed by a team mate, it saves the position and when you're alive again you automatically to the saved position. (:
Thanks for you're help anyway (:

PS; If someone wants the script, PM me