Fortunately, we have developed a FREE plugin for BuddyPress to limit the members listing as per our need. When you limit the members the pagination will automatically be added to it.
The plugin is called “Shortcodes for BuddyPress”. There are other features that these plugins offer such as, show activities, groups list, and notifications and filter them too.
Just paste the shortcode on the page wherever you want to fetch the filtered information.
Example: [members-listing search_terms=’zoya’]