SA-MP Forums Archive
[Order] 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)
+--- Thread: [Order] Anti Team Kill (/showthread.php?tid=660597)



[Order] Anti Team Kill - RahomGamer - 07.11.2018

Hi, how can I do an anti kill team system? give me the code and the steps of how to put it please I am new to this


Re: [Order] Anti Team Kill - PoniStar - 07.11.2018

Just set their team on same number : SetPlayerTeam(playerid, TEAMNUMBER);

for exp : red team : SetPlayerTeam(playerid, 1);
and blue team : SetPlayerTeam(playerid, 2);
players with same team cant give damage to their teammates! "AUTO ANTI KILL"
-> use setplayerteam on team selection

Sorry for my bad english +rep please if i helped you !


Re: [Order] Anti Team Kill - RahomGamer - 08.11.2018

Thank you very much, how I rate you is that I am new


Re: [Order] Anti Team Kill - v1k1nG - 08.11.2018

Better if you learn how to use SetSpawnInfo, it's more useful as it doesn't just set the player's team but their skin spawn coordinates and weapons too.


Re: [Order] Anti Team Kill - PoniStar - 08.11.2018

Quote:
Originally Posted by RahomGamer
Посмотреть сообщение
Thank you very much, how I rate you is that I am new
under my photo and username click on that star! (reputation)