Try adding a Collider Component to your Camera object, suitably positioned and adjusted to represent the range you are interested in. You can then check if the players are within the range with OnCollisionEnter() / OnCollisionExit() or OnTriggerEnter() / OnTriggerExit() (if you set the Collider to be IsTrigger), and then use the Collision / Collider information these methods provide to get the player objects’ names, calculate further range distances, display an “in-range” indicator, etc.
An example (assuming a Collider set to IsTrigger):
using UnityEngine;
public class RangeIndicationScript : MonoBehaviour
{
Transform collidedObj;
float distance;
void Update()
{
distance = !collidedObj ? 0.0f : Vector3.Distance(transform.position, collidedObj.transform.position);
}
void OnGUI()
{
Rect lblpos = new Rect(10, 10, 200, 50);
string lbl = !collidedObj ? "No object in range." : System.String.Format("{0} is in range!