Get all alive players using get_players with the proper flags and loop through them checking the distance between you and the player using get_distance or get_distance_f. When a player is in range, send him the message via client_print, colorchat or however you want.