how to do an anti teamkill? - 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: how to do an anti teamkill? (
/showthread.php?tid=256933)
how to do an anti teamkill? -
sasuga - 23.05.2011
hello everybody, well i have a doubt, i need to do a anti teamkill for a server, the idea is that the player puts a command like /team1 and every player that is in /team1 doesn't get hurted when a teammate attacks it, does anyone knows how to do it, i already tried with SetPlayerTeam but it doesnt work for me plz i need some help
Cya'
Re: how to do an anti teamkill? -
1337connor - 23.05.2011
Set their team to the same team.. lol.
E.G.
OnPlayerSpawn(playerid)
{
if(Team[playerid] == 1) SetPlayerTeam(playerid,1);
return 1;
}