Prop Hunt Hunters take damage

So I have started up a Prop Hunt Server and I want to add Last Prop Standing to it. I have code already entered that allows the last prop to receive a weapon when they are the last prop, the problem that I am having is the fact that the props cannot damage the hunters when shooting them. So far I have tried this code in the EntityTakeDamage function but it doesn’t seem to work.

if GAMEMODE:InRound() && ent && ent:IsPlayer() && ent:Alive() && ent:Team() == TEAM_HUNTERS && ent.ph_hunter then

Any help is greatly appreciated