So, I’m trying to create a Military themed RP server, using DarkRP 2.5 as a base. I’ve been trying to turn off friendly fire for awhile, meaning to where people in the same teamset can’t kill each other, any help would be much appreciated.
I’ve come up with this so far.
[lua]function GM:PlayerShouldTakeDamage( ply, victim )
if ply:IsPlayer() then
if ply:Team() == victim:Team() then