You can still kill team mates :S - 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: You can still kill team mates :S (
/showthread.php?tid=106359)
You can still kill team mates :S -
KIDUL - 02.11.2009
Hey,
I used the SetPlayerTeam-function , but it still seems to be that you can kill your team mates.
What could be the reason of this ?
Re: You can still kill team mates :S -
Pho3niXx - 02.11.2009
becoz same team members can kill each other, sa-mp has no limitation on that.
If you want to prevent it, you will have to script it yourself!
Re: You can still kill team mates :S -
Kyosaur - 02.11.2009
Quote:
Originally Posted by Dr4x
becoz same team members can kill each other, sa-mp has no limitation on that.
If you want to prevent it, you will have to script it yourself!
|
SetPlayerTeam is suppose to prevent team killing (well, it did in 0.2x). It's always been a bit buggy (same with GetPlayerTeam). I suggest you just warn the player that is team killing / if he does it a certain amount of times, kick him.
Re: You can still kill team mates :S -
BP13 - 02.11.2009
works 90% of the time for me.
Re: You can still kill team mates :S -
Dak_Cobain - 03.11.2009
AddPlayerClassEx(teamid,whatever...);
That will stop your teamkilling problems. Though, that's if you want the team pre-set on spawn.