If he had a green diamond above him, then he was on your team. If he had a red diamond, he was on the opposite team.
Players on the same teams as you are immune to any of your attacks, unless the server admin turned on friendly fire. (mp_friendlyfire 1)