The tag mismatch is because cs_[g/s]et_user_team() expects the CsTeams tag.
So you must tag them like this:
PHP Code:
new CsTeams: Team = cs_get_user_team(id);
More info about tags & enums can be found here:
http://forums.alliedmods.net/showthread.php?t=140103
If you only want to compare the teams of 2 players, without doing anything else,
you can just do it like this:
PHP Code:
// Team is same.
if(cs_get_user_team(id) == cs_get_user_team(attacker)
{
}
// team is not the same.
else
{
}
__________________