Prevent damage to teammates
#4

Quote:
Originally Posted by algorhitmically
View Post
OnPlayerTakeDamage:
Return Values:
1 - Callback will not be called in other filterscripts.
0 - Allows this callback to be called in other filterscripts.
It is always called first in filterscripts so returning 1 there blocks other filterscripts from seeing it.


But..
If you use weapon-config include:
returning false in OnPlayerDamage will prevent damage from being inflicted.
Thanks to your reply but i use SetPlayerTeam.

Quote:
Originally Posted by Kwarde
View Post
You could simply use SetPlayerTeam() instead.
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Yeah, is better to use SetPlayerTeam.
Thanks
Reply


Messages In This Thread
Prevent damage to teammates - by xRadical3 - 27.06.2020, 23:45
Re: Prevent damage to teammates - by algorhitmically - 27.06.2020, 23:58
Re: Prevent damage to teammates - by Kwarde - 28.06.2020, 00:03
Re: Prevent damage to teammates - by xRadical3 - 28.06.2020, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)