cs_get_user_team(id) & CS_TEAM_T
is not the same as
cs_get_user_team(id) == CS_TEAM_T
It may provide the same result you need since 1/2 (T/CT) are individual bits and a team cannot be a bitsum.
But it will not work properly if you try & CS_TEAM_SPECTATOR.