Anti Team Punch - 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: Anti Team Punch (
/showthread.php?tid=498648)
~nvm, got it~ -
Blackazur - 04.03.2014
~nvm, got it~
Re: Anti Team Kill -
BigBrainAFK - 04.03.2014
why would you do that?
AW: Anti Team Kill -
Blackazur - 04.03.2014
Because i want it simply, why are you asking me that?
Re: Anti Team Punch -
BigBrainAFK - 04.03.2014
so you only want that players in a team can't damage teammates, and there i would use
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Re: Anti Team Punch -
MP2 - 04.03.2014
Use OnPlayerGive/TakeDamage, and if the reason is punching (0/1 I believe (fist/brass knuckles)) then TogglePlayerControllable to false, and toggle it to true again on a timer (SetTimerEx).
AW: Anti Team Punch -
Blackazur - 04.03.2014
~nvm, got it~
Re: AW: Anti Team Punch -
[FSaF]Jarno - 04.03.2014
Quote:
Originally Posted by Blackazur
MP2, can you give me an example, please? thanks.
|
He just did. By "give me an example" you mean "please script it for me i don't know how to do it", right?
AW: Anti Team Punch -
Blackazur - 04.03.2014
~nvm, got it~
Re: Anti Team Punch -
MP2 - 04.03.2014
Then start learning.
AW: Anti Team Punch -
Blackazur - 04.03.2014
~nvm, got it~