Like Ni3ls said you could do that with HUDs/waypoints but I think there was a cvar for it also but i'm not sure.