[lua]function playershouldtakedamage(victim, attacker)
if victim:Team() == TEAM_MAYOR && attack:Team() == (sadasdasdasd)
hook.Add( “PlayerShouldTakeDamage”, “playershouldtakedamage”, playershouldtakedamage)
How can I make the function check if they attack is one of these teams:
TEAM_POLICE TEAM_CHIEF TEAM_SWAT TEAM_swat_leader TEAM_swat_sniper TEAM_VICE
Instead of making a bunch of if/then fuctions… how can I make it all out in 1 function?