Anti Team 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: Anti Team Kill? (
/showthread.php?tid=89751)
Anti Team Kill? -
_Vortex - 04.08.2009
I cant seem to make it so you cant teamkill..
(im using gTeams)
I've searched also, and found nothing.
Any help would be appreciated.
Re: Anti Team Kill? -
Woet - 04.08.2009
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Re: Anti Team Kill? -
Abernethy - 04.08.2009
pawn Код:
// OnPlayerSpawn
if (gTeam[playerid] == YOUR_TEAM)
{
SetPlayerTeam(playerid, YOUR_TEAM);
}
else if (gTeam[playerid] == YOUR_TEAM_2)
{
SetPlayerTeam(playerid, YOUR_TEAM_2);
}
Re: Anti Team Kill? -
Mr_Finnigan - 04.08.2009
Seif posted this long ago in useful snippets or something like that and i use it and it works exactly like it is supposed to,your teammates bullets using gTeam does not hurt you.
Код:
// top of your gamemode
forward SettingPlayerTeam();
//OnPlayerConnect
SetTimerEx("SettingPlayerTeam",10,1,"d",playerid);
//Bottom of your script
public SettingPlayerTeam()
{
for(new playerid; playerid < 200; playerid++)
SetPlayerTeam(playerid, gTeam[playerid]);
return 1;
}
Re: Anti Team Kill? -
_Vortex - 04.08.2009
Thanks for all your help guys
Re: Anti Team Kill? -
[NTX]MikeQ - 06.07.2010
is there a anti team kill FS? im too lazy thats why