wrecked_ means that EV_INT_team is a definition.
Use it in entity_get_int( ) function to get a return value.
Code:
new team = entity_get_int( id, EV_INT_team );
Though it's much easier to use get_user_team() or cs_get_user_team(), though apparently get_user_team() sometimes returns a wrong value, though I've never had a problem with it.
Code:
enum
{
TEAM_UNASSIGNED, // 0
TEAM_T, // 1
TEAM_CT, // 2
TEAM_SPEC, // 3
};
EXAMPLE:
if( get_user_team( id ) == TEAM_T )
{
//do stuff
}