Hello, im trying to make a friendlyfire plugin for teammates with the function onentitytakedamage, i know i need to use this hook right? But idk how put it to check if is team members, help me please or explain me how it works, im new in plugin dev i only now and bad the basics
object OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
{
if (entity is BasePlayer)
{
return true;
}
return null;
}