Disabling friendly fire for a FPS game

im creating an fps game but i want to make teams and when i shoot a players the projectile decide if the player with same team . if not then do damage … i search for tuts but i failed

bumpbumpbumpbumpb